Details
-
New Feature
-
Resolution: Done
-
Major - P3
-
None
-
2.2.4
-
None
-
Windows 7 Enterprise SP1
Description
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?