Table of Contents

Method GetCreateIndexOptions

Namespace
MongoDB.EntityFrameworkCore.Extensions
Assembly
MongoDB.EntityFrameworkCore.dll

GetCreateIndexOptions(IConventionIndex)

Gets the MongoDB.Driver.CreateIndexOptions options for the index if one is set.

public static CreateIndexOptions? GetCreateIndexOptions(this IConventionIndex index)

Parameters

index IConventionIndex

The IConventionIndex to set the options for.

Returns

CreateIndexOptions

The MongoDB.Driver.CreateIndexModel<TDocument> with the configured index options, or null if one is not set.