-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.4
-
Component/s: Linq, Serialization
-
None
-
Environment:Windows 7 Enterprise SP1
I have a pair of classes like:
class Parent{ string Id {get;set;} Children children {get;set;} } class Children{ string Id {get;set;} }
An example of these classes serialized would be:
// Parent { "_id":ObjectId("1"), "children":ObjectId("2") } // Children { "_id":ObjectId("2") }
I would like to be able to filter a collection of the class Parent by using the Children Id property like this:
GetCollection<Parent>("Parent").AsQueryable().Where(x => x.Children.Id == "2")
is this possible? If not, is there a workaround to this?