[CSHARP-1671] Using Contains with GroupBy and an Aggregate throws NotSupportedException Created: 18/May/16 Updated: 23/Sep/16 Resolved: 05/Aug/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | 2.3 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dave New | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The following query works:
But, when adding an $in condition (see below), the following exception is thrown:
I understand that a lot of LINQ is not yet supported by the driver, but I can't understand how introducing that addition match stage (using $in) could result in an incompatibility for the grouping stage. Is anyone able to explain why this is happening? I am using MongoDB 3.2 with the .NET Driver 2.2.2. MyEntity looks something like this:
Originally logged on StackOverflow: http://stackoverflow.com/questions/36838213/net-driver-with-linq-notsupportedexception-project-or-group |
| Comments |
| Comment by Githook User [ 05/Aug/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Omri Cohen [ 24/Jul/16 ] |
|
+1 |