Class MongoClientWrapper
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
Provides the implementation of the IMongoClientWrapper between the MongoDB Entity Framework provider and the underlying MongoDB.Driver.IMongoClient.
public class MongoClientWrapper : IMongoClientWrapper
- Inheritance
-
MongoClientWrapper
- Implements
- Inherited Members
Constructors
- MongoClientWrapper(IDbContextOptions, IServiceProvider, IDiagnosticsLogger<Command>)
Create a new instance of MongoClientWrapper with the supplied parameters.
Methods
- Execute<T>(MongoExecutableQuery, out Action)
Execute a MongoExecutableQuery and return a Action that should be executed once the first item has been enumerated.
- GetCollection<T>(string)
Get an MongoDB.Driver.IMongoCollection<TDocument> associated with a MongoDB collection by name.
- SaveUpdates(IEnumerable<MongoUpdate>)
Save the supplied MongoUpdate operations to the database.
- SaveUpdatesAsync(IEnumerable<MongoUpdate>, CancellationToken)
Save the supplied MongoUpdate operations to the database asynchronously.