Class DeleteOneModel

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Model for deleting a single document.

public sealed class DeleteOneModel<TDocument> : WriteModel<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance

DeleteOneModel

Inherited Members

Constructors

DeleteOneModel(FilterDefinition)

Initializes a new instance of the DeleteOneModel class.

Properties

Collation

Gets or sets the collation.

Filter

Gets the filter.

Hint

Gets or sets the hint.

ModelType

Gets the type of the model.