craiggwilson / fluent-mongo

Provides a fluent interface on top of the 10gen driver including Linq.
172 stars 28 forks source link

Class map #25

Closed nekresh closed 13 years ago

nekresh commented 13 years ago

Use the serializer in the classmap to serialize the query members. Allow for BsonRepresentation to be used in the query (ObjectId as String) or completely custom serializers.

Of course, using custom representations can limit the query possibilities using Linq (no integer comparison for an Int32 stored in a String field) but it allows it to be queried.

This pull-request has merge the branch containing this other pull-request (https://github.com/craiggwilson/fluent-mongo/pull/24). Hope it's okay, otherwise I'll make another one.