Table of Contents

Method CanSetCreateIndexOptions

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

CanSetCreateIndexOptions(IConventionIndexBuilder, CreateIndexOptions?, bool)

Returns a value indicating whether the given MongoDB.Driver.CreateIndexOptions can be set for the index.

public static bool CanSetCreateIndexOptions(this IConventionIndexBuilder indexBuilder, CreateIndexOptions? options, bool fromDataAnnotation = false)

Parameters

indexBuilder IConventionIndexBuilder

The builder for the index being configured.

options CreateIndexOptions

The MongoDB.Driver.CreateIndexOptions for the index.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

bool

true if the given name can be set for the index.