-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.4.2
-
Component/s: None
Given a collection with embedded object arrays, I find no way to do an $elemMatch using LINQ.
e.g. (quoted from Fluent mongo wiki):
var people = collection.AsQueryable().Where(x => x.Addresses.Any(a => a.City == "Paris"));
Should tranlate to {"Addresses": {$elemMatch:
{"City": "Paris"}}}
- duplicates
-
CSHARP-413 Add support for Enumerable.Any in LINQ queries
- Closed