Class WriteModel

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Base class for a write model.

public abstract class WriteModel<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance

object

WriteModel

Derived

DeleteManyModel

DeleteOneModel

InsertOneModel

ReplaceOneModel

UpdateManyModel

UpdateOneModel

Inherited Members

object.Equals(object)

object.Equals(object, object)

object.GetHashCode()

object.GetType()

object.MemberwiseClone()

object.ReferenceEquals(object, object)

object.ToString()

Properties

ModelType

Gets the type of the model.

Methods

ThrowIfNotValid()

Validate model.