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 時設定。
備註
請參閱 Full-Text 搜尋SQL Server全文搜尋。