CosmosModelBuilderExtensions.CanSetDefaultFullTextLanguage 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.
Returns a value indicating whether the default full-text language can be set from the current configuration source
public static bool CanSetDefaultFullTextLanguage(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string? language, bool fromDataAnnotation = false);
static member CanSetDefaultFullTextLanguage : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * bool -> bool
<Extension()>
Public Function CanSetDefaultFullTextLanguage (modelBuilder As IConventionModelBuilder, language As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- modelBuilder
- IConventionModelBuilder
The model builder.
- language
- String
The default language.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true if the configuration can be applied.
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.