Table of Contents

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

collectionName string

The name of the collection this update applies to.

model WriteModel<BsonDocument>

The MongoDB.Driver.WriteModel<TDocument> containing the update.