[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: CSHARP-1432: added support for $all in predicates.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/dd98794f9dd4a6e02608643c0afe1e2f6df28c54

Comment by Ralph Shillington [ 03/Oct/15 ]

Lack of support $all via ContainsAll will keep us in the LegacyDriver.

Generated at Wed Feb 07 21:39:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.