SqlServerIndexBuilderExtensions.CanSetFullTextLanguages 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示在面向SQL Server时是否可以设置全文索引中属性的语言。
public static bool CanSetFullTextLanguages(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, System.Collections.Generic.IReadOnlyDictionary<string,string>? languages, bool fromDataAnnotation = false);
static member CanSetFullTextLanguages : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * System.Collections.Generic.IReadOnlyDictionary<string, string> * bool -> bool
<Extension()>
Public Function CanSetFullTextLanguages (indexBuilder As IConventionIndexBuilder, languages As IReadOnlyDictionary(Of String, String), Optional fromDataAnnotation As Boolean = false) As Boolean
参数
- indexBuilder
- IConventionIndexBuilder
要配置的索引的生成器。
- languages
- IReadOnlyDictionary<String,String>
属性名称到语言术语的字典。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回
true如果可在目标SQL Server时设置属性的语言,则为
注解
有关SQL Server全文搜索的详细信息,请参阅 Full-Text 搜索。