Class CollectionFindOneAndReplaceOptions<T>
Options for finding and replacing a single document in a collection.
public class CollectionFindOneAndReplaceOptions<T> : BaseReplaceOneOptions<T, CollectionSortBuilder<T>> where T : class
Type Parameters
T
- Inheritance
-
CollectionFindOneAndReplaceOptions<T>
- Inherited Members
Properties
Projection
Define the projection to apply on the returned document.
public IProjectionBuilder Projection { get; set; }
Property Value
ReturnDocument
Whether to return the document before or after the replacement.
public ReturnDocumentDirective? ReturnDocument { get; set; }