[CSHARP-1432] Provide support for $all Created: 01/Oct/15 Updated: 20/Jan/16 Resolved: 05/Oct/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | None |
| Fix Version/s: | 2.1 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ralph Shillington | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | driver, feature | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
.NET 4.6 |
||
| Description |
|
Originally the Linq support included extension methods ContainsAll and ContainsAny which would map to $all and $in. |
| Comments |
| Comment by Ralph Shillington [ 05/Oct/15 ] |
|
As soon as rc1 hits the Nuget.Org we'll start testing with it. Thanks for squeaking this one in. |
| Comment by Craig Wilson [ 05/Oct/15 ] |
|
Ralph, We've added support for this directly into LINQ without an extension method. You can see the tests here: https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver.Tests/Linq/Translators/PredicateTranslatorTests.cs#L35. We'll be releasing a 2.1-rc1 shortly which will include this. |
| Comment by Githook User [ 05/Oct/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Ralph Shillington [ 03/Oct/15 ] |
|
Lack of support $all via ContainsAll will keep us in the LegacyDriver. |