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
indexBuilderIConventionIndexBuilderThe builder for the index being configured.
optionsCreateIndexOptionsThe MongoDB.Driver.CreateIndexOptions for the index.
fromDataAnnotationboolIndicates whether the configuration was specified using a data annotation.