Table of Contents

Constructor MongoClientWrapper

Namespace
MongoDB.EntityFrameworkCore.Storage
Assembly
MongoDB.EntityFrameworkCore.dll

MongoClientWrapper(IDbContextOptions, IServiceProvider, IDiagnosticsLogger<Command>)

Create a new instance of MongoClientWrapper with the supplied parameters.

public MongoClientWrapper(IDbContextOptions dbContextOptions, IServiceProvider serviceProvider, IDiagnosticsLogger<DbLoggerCategory.Database.Command> commandLogger)

Parameters

dbContextOptions IDbContextOptions

The IDbContextOptions that specify how this provider is configured.

serviceProvider IServiceProvider

The IServiceProvider used to resolve dependencies.

commandLogger IDiagnosticsLogger<DbLoggerCategory.Database.Command>

The IDiagnosticsLogger used to log diagnostics events.