alexandre-spieser / mongodb-generic-repository

An example of generic repository implementation using the MongoDB C# Sharp 2.0 driver (async)
MIT License
315 stars 87 forks source link

How to use with Aggregate AllowDiskUse #45

Open dinhan92 opened 2 years ago

dinhan92 commented 2 years ago

I try to use Aggegate with Database.GetCollection(GetCollectionName(partitionKey)) but it get this error: Cannot implicitly convert type 'MongoDB.Driver.IAggregateFluent' to 'MongoDB.Driver.IMongoCollection' How can I use AllowDiskUse?