Constructor MongoUpdate
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
MongoUpdate(string, WriteModel<BsonDocument>)
Represents an update to a MongoDB database by specifying the collection name and the appropriate document inside a MongoDB.Driver.WriteModel<TDocument> which indicates the type of operation.
public MongoUpdate(string collectionName, WriteModel<BsonDocument> model)
Parameters
collectionNamestringThe name of the collection this update applies to.
modelWriteModel<BsonDocument>The MongoDB.Driver.WriteModel<TDocument> containing the update.