CosmosModelBuilderExtensions.HasDefaultFullTextLanguage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| HasDefaultFullTextLanguage(ModelBuilder, String) |
Configures a default language to use for full-text search at database scope. |
| HasDefaultFullTextLanguage(IConventionModelBuilder, String, Boolean) |
Configures a default language to use for full-text search at database scope. |
HasDefaultFullTextLanguage(ModelBuilder, String)
Configures a default language to use for full-text search at database scope.
public static Microsoft.EntityFrameworkCore.ModelBuilder HasDefaultFullTextLanguage(this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string? language);
static member HasDefaultFullTextLanguage : Microsoft.EntityFrameworkCore.ModelBuilder * string -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasDefaultFullTextLanguage (modelBuilder As ModelBuilder, language As String) As ModelBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- language
- String
The default language.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Applies to
HasDefaultFullTextLanguage(IConventionModelBuilder, String, Boolean)
Configures a default language to use for full-text search at database scope.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder? HasDefaultFullTextLanguage(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string? language, bool fromDataAnnotation = false);
static member HasDefaultFullTextLanguage : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
<Extension()>
Public Function HasDefaultFullTextLanguage (modelBuilder As IConventionModelBuilder, language As String, Optional fromDataAnnotation As Boolean = false) As IConventionModelBuilder
Parameters
- modelBuilder
- IConventionModelBuilder
The model builder.
- language
- String
The default language.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the configuration was applied,
null otherwise.
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.