Constructor MongoDatabaseWrapper
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
MongoDatabaseWrapper(DatabaseDependencies, ICurrentDbContext, IMongoClientWrapper, IDiagnosticsLogger<Update>, IDiagnosticsLogger<Transaction>)
Creates a MongoDatabaseWrapper with the required dependencies, client wrapper and logging options.
public MongoDatabaseWrapper(DatabaseDependencies dependencies, ICurrentDbContext currentDbContext, IMongoClientWrapper mongoClient, IDiagnosticsLogger<DbLoggerCategory.Update> updateLogger, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction> transactionLogger)
Parameters
dependenciesDatabaseDependenciesThe DatabaseDependencies this object should use.
currentDbContextICurrentDbContextThe ICurrentDbContext this should use to interact with the current context.
mongoClientIMongoClientWrapperThe IMongoClientWrapper this should use to interact with MongoDB.
updateLoggerIDiagnosticsLogger<DbLoggerCategory.Update>transactionLoggerIDiagnosticsLogger<DbLoggerCategory.Database.Transaction>The IDiagnosticsLogger for DbLoggerCategory.Database.Transaction.