Class UpdateOneModel
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Model for updating a single document.
public sealed class UpdateOneModel<TDocument> : WriteModel<TDocument>Type Parameters
TDocument
The type of the document.
Inheritance
UpdateOneModel
Inherited Members
Constructors
UpdateOneModel(FilterDefinition, UpdateDefinition)
Initializes a new instance of the UpdateOneModel class.
Properties
Gets or sets the array filters.
Gets or sets the collation.
Gets the filter.
Gets or sets the hint.
Gets or sets a value indicating whether to insert the document if it doesn't already exist.
Gets the type of the model.
Gets or sets the sort definition.
Gets the update.
Methods
Validate model.