[CSHARP-491] LINQ Feature Doesn't Support $elemMatch Created: 13/Jun/12 Updated: 20/Mar/14 Resolved: 13/Jun/12 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.4.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Zaid Masud | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | C#, linq, linq,query | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
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"}}} |
| Comments |
| Comment by Craig Wilson [ 13/Jun/12 ] |
|
We are most likely going to start doing pre-release builds into nuget before a release. In addition, we are looking at publishing nightly builds. Yes, the master is pretty stable... all unit tests pass. We are going over now what should be included in 1.5 and most likely will be adding comments, refining doc comments, and reviewing the breaking changes. |
| Comment by Zaid Masud [ 13/Jun/12 ] |
|
See that... I downloaded the latest code base today and it works for me there. Seems like a stable build, we might just go with this build until the official release – unless you wouldn't recommend the build for any reason? Also – would be nice to see pre-release driver versions in NuGet package manager |
| Comment by Craig Wilson [ 13/Jun/12 ] |
|
Thanks for the report. Keep an eye out for version 1.5 as this feature is already implemented. |