[CSHARP-2223] Unhandled mongo expression type: Pipeline when using more than one accumulator Created: 23/Mar/18 Updated: 28/Oct/23 Resolved: 11/Feb/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq, LINQ3 |
| Affects Version/s: | 2.5 |
| Fix Version/s: | 2.14.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Baris Saydag | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | triaged | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Visual Studio 2017, both .Net framwork and .Net core. |
||
| Epic Link: | CSHARP-3615 |
| Description |
|
Below query fails because Compare function in ExpressionComparer class in ExpressionComparer.cs file doesn't implement comparison for Pipeline typed expressions: case ExpressionType.Extension: switch (extensionA.ExtensionType)
Here is the query: ) ) ); var R = Q.ToList();}} |
| Comments |
| Comment by James Kovacs [ 11/Feb/22 ] | ||||
|
This issue has been fixed in the new LINQ provider (known as LINQ3), which is included in the 2.14 release. Configure your MongoClientSettings to use LinqProvider.V3 if you want to use this functionality. To configure a client to use the LINQ3 provider use code like the following
|