Table of Contents

Struct MongoDatabaseCreationOptions

Namespace
MongoDB.EntityFrameworkCore.Metadata
Assembly
MongoDB.EntityFrameworkCore.dll
public readonly record struct MongoDatabaseCreationOptions : IEquatable<MongoDatabaseCreationOptions>
Implements
Inherited Members

Constructors

MongoDatabaseCreationOptions()

Creates a MongoDatabaseCreationOptions with default values for all options.

MongoDatabaseCreationOptions(bool, bool, bool, bool, TimeSpan?, CreateCollectionOptions?, bool, bool)

Creates a MongoDatabaseCreationOptions to determine which additional actions are taken when EnsureCreated(DatabaseFacade, MongoDatabaseCreationOptions) or EnsureCreatedAsync(DatabaseFacade, MongoDatabaseCreationOptions, CancellationToken)

Properties

CreateCollectionOptions

The options to use when creating the MongoDB database collections. The default is null.

CreateMissingCollections

Creates any MongoDB database collections that do not already exist. The default is true.

CreateMissingIndexes

Creates any non-search and non-vector search MongoDB indexes that do not already exist. The default is true.

CreateMissingSearchIndexes

Creates any MongoDB search indexes that do not already exist. The default is true.

CreateMissingVectorIndexes

Creates any MongoDB vector indexes that do not already exist. The default is true.

IndexCreationTimeout

The minimum amount of time to wait for all indexes to be 'READY' before aborting. The default is 60 seconds. Zero seconds means no timeout.

WaitForSearchIndexes

Waits for all MongoDB search indexes to be 'READY' before continuing. The default is true.

WaitForVectorIndexes

Waits for all MongoDB vector indexes to be 'READY' before continuing. The default is true.