-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.6
-
Component/s: None
-
None
To reproduce:
var query = new QueryDocument("x", 1); BsonValue bsonValue; var ok = BsonTypeMapper.TryMapToBsonValue(query, out bsonValue);
TryMapToBsonValue knows about the BsonDocument object model, but not about the classes derived from BsonDocument (like QueryDocument).
There is a pull request from Oleg Kosmakov with a fix for this: