dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBConnectionStringBuilder Class / CreateCollectionOnInsert Property

On this page
    CreateCollectionOnInsert Property
    On this page
    Gets or sets a value indicating whether an INSERT or MongoDBLoader into a collection that does not exist creates it; false raises an error. The default value is false.
    Syntax
    'Declaration
     
    Public Property CreateCollectionOnInsert As Boolean
    public bool CreateCollectionOnInsert {get; set;}
    Remarks
    Connection string keyword: Create Collection On Insert.
    See Also