Class BaseReplaceOneOptions<T, TSort>
Base class for replace-one operation options.
public abstract class BaseReplaceOneOptions<T, TSort> : CommandOptions where T : class where TSort : SortBuilder<T>
Type Parameters
TTSort
- Inheritance
-
BaseReplaceOneOptions<T, TSort>
- Derived
- Inherited Members
Properties
Sort
Sort order for determining which document to replace when multiple match the filter.
public TSort Sort { get; set; }
Property Value
- TSort
Upsert
Whether to insert the document if no matching document is found or not.
public bool Upsert { get; set; }