Table of Contents

Class InsertOneModel<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Model for inserting a single document.

[Serializable]
public sealed class InsertOneModel<TDocument> : WriteModel<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
WriteModel<TDocument>
InsertOneModel<TDocument>
Inherited Members

Constructors

InsertOneModel(TDocument)

Initializes a new instance of the InsertOneModel<TDocument> class.

Properties

Document

Gets the document.

ModelType

Gets the type of the model.