Support two levels of transactions - transaction that wrap the SaveChanges call from the MongoDbContext and the internal batch write calls in the DbEntityWriter.
https://mongodb.github.io/mongo-csharp-driver/2.7/what_is_new/
https://mongodb.github.io/mongo-csharp-driver/2.7/reference/driver/crud/sessions_and_transactions/
Will need to maintain backwards compatibility when the MongoDB server isn't running v4
More investigation will be required on how best to implement this functionality.
Support two levels of transactions - transaction that wrap the
SaveChangescall from theMongoDbContextand the internal batch write calls in theDbEntityWriter.https://mongodb.github.io/mongo-csharp-driver/2.7/what_is_new/
https://mongodb.github.io/mongo-csharp-driver/2.7/reference/driver/crud/sessions_and_transactions/
Will need to maintain backwards compatibility when the MongoDB server isn't running v4
More investigation will be required on how best to implement this functionality.