|
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);
|
|