[CSHARP-2886] Not support transform selectmany to Aggregate? Created: 19/Dec/19  Updated: 28/Oct/23  Resolved: 17/Nov/22

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 2.10.0
Fix Version/s: 2.18.0

Type: New Feature Priority: Major - P3
Reporter: wu gezi Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File U1DAPQU8J%PCM`]RND$XG{Q.png    

 Comments   
Comment by Robert Stam [ 17/Nov/22 ]

This issue has been fixed in the new LINQ provider (known as LINQ3), which was introduced 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

var connectionString = "mongodb://localhost";
var clientSettings = MongoClientSettings.FromConnectionString(connectionString);
clientSettings.LinqProvider = LinqProvider.V3;
var client = new MongoClient(clientSettings);

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