Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
BsonDocuments should be able to be used in LINQ queries for when BsonDocuments are either the root or exposed as properties.
query = Query<BsonDocument>.Where(doc => doc["Name"] == "Bob McBob");
|
|
|
//
|
|
|
query = Query<BsonDocument>.Where(doc => doc["Children"][0]["Name"] == "Jack");
|
|
|
//
|
|
|
query = Query<BsonDocument>.Where(doc => doc["Children"][0]["Age"] > 20);
|