Table of Contents

Class SearchIndexTokenDefinition

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

A MongoDB search definition for the "token" type.

public class SearchIndexTokenDefinition : SearchIndexDefinitionBase, ISearchIndexDefinition
Inheritance
SearchIndexTokenDefinition
Implements
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

NormalizeToLowercase

A flag indicating whether to transform text values in string fields to lowercase.

Methods

ToBson()

Generates the BSON for this part of the index definition.