Table of Contents

Class SearchIndexDefinitionBase

Namespace
MongoDB.EntityFrameworkCore.Metadata.Search.Definitions
Assembly
MongoDB.EntityFrameworkCore.dll

Defines all or part of a MongoDB search index definition.

public abstract class SearchIndexDefinitionBase : ISearchIndexDefinition
Inheritance
SearchIndexDefinitionBase
Implements
Derived
Inherited Members

Remarks

This type is typically used by the database provider. It is only needed by applications when reading metadata from EF Core. Use HasSearchIndex(EntityTypeBuilder, string?) or one of its overloads to configure a MongoDB search index.

Properties

Name

The name for this part of the index definition.

Methods

ToBson()

Generates the BSON for this part of the index definition.