Class MongoDatabaseWrapper
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
Provides EF database-level operations using the underlying IMongoClientWrapper.
public class MongoDatabaseWrapper : Database, IDatabase
- Inheritance
-
MongoDatabaseWrapper
- Implements
- Inherited Members
Constructors
- MongoDatabaseWrapper(DatabaseDependencies, ICurrentDbContext, IMongoClientWrapper, IDiagnosticsLogger<Update>, IDiagnosticsLogger<Transaction>)
Creates a MongoDatabaseWrapper with the required dependencies, client wrapper and logging options.
Methods
- SaveChanges(IList<IUpdateEntry>)
Save all the changes detected in the entities collection to the underlying MongoDB database.
- SaveChangesAsync(IList<IUpdateEntry>, CancellationToken)
Save all the changes detected in the entities collection to the underlying MongoDB database asynchronously.