Class InsertOneModel

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Model for inserting a single document.

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

Type Parameters

TDocument

The type of the document.

Inheritance

object

WriteModel

InsertOneModel

Inherited Members

WriteModel.ThrowIfNotValid()

object.Equals(object)

object.Equals(object, object)

object.GetHashCode()

object.GetType()

object.ReferenceEquals(object, object)

object.ToString()

Constructors

InsertOneModel(TDocument)

Initializes a new instance of the InsertOneModel class.

Properties

Document

Gets the document.

ModelType

Gets the type of the model.