Table of Contents

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

dependencies DatabaseDependencies

The DatabaseDependencies this object should use.

currentDbContext ICurrentDbContext

The ICurrentDbContext this should use to interact with the current context.

mongoClient IMongoClientWrapper

The IMongoClientWrapper this should use to interact with MongoDB.

updateLogger IDiagnosticsLogger<DbLoggerCategory.Update>

The IDiagnosticsLogger for DbLoggerCategory.Update.

transactionLogger IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

The IDiagnosticsLogger for DbLoggerCategory.Database.Transaction.