Class CollectionUpdateOneOptions<T>
Options for updating a single document in a collection.
public class CollectionUpdateOneOptions<T> : BaseUpdateOneOptions where T : class
Type Parameters
T
- Inheritance
-
CollectionUpdateOneOptions<T>
- Derived
- Inherited Members
Properties
Sort
Sort order for determining which document to update when multiple match the filter.
public CollectionSortBuilder<T> Sort { get; set; }
Property Value
Upsert
Whether to insert a new document if the filter does not match any documents.
public bool Upsert { get; set; }