Table of Contents

Class MongoDbContextOptionsExtensions

Namespace
Microsoft.EntityFrameworkCore
Assembly
MongoDB.EntityFrameworkCore.dll

MongoDB-specific extension methods for DbContextOptionsBuilder.

public static class MongoDbContextOptionsExtensions
Inheritance
MongoDbContextOptionsExtensions
Inherited Members

Methods

UseMongoDB(DbContextOptionsBuilder, IMongoClient, string, Action<MongoDbContextOptionsBuilder>?)

Configures the context to connect to a MongoDB database using the DbContextOptionsBuilder.

UseMongoDB(DbContextOptionsBuilder, string, string, Action<MongoDbContextOptionsBuilder>?)

Configures the context to connect to a MongoDB database using the DbContextOptionsBuilder.

UseMongoDB<TContext>(DbContextOptionsBuilder<TContext>, IMongoClient, string, Action<MongoDbContextOptionsBuilder>?)

Configures the DbContext subclass to connect to a MongoDB database.

UseMongoDB<TContext>(DbContextOptionsBuilder<TContext>, string, string, Action<MongoDbContextOptionsBuilder>?)

Configures the DbContext subclass to connect to a MongoDB database.