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.
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.