語言

SqlServerIndexBuilderExtensions.CanSetFullTextLanguages 方法

定義

回傳一個值,表示在針對 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 時設定。

備註

請參閱 Full-Text 搜尋SQL Server全文搜尋。

適用於