Class InsertOneModel<TDocument>
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.