语言

SqlServerIndexExtensions.SetFullTextKeyIndex 方法

定义

重载

名称 说明
SetFullTextKeyIndex(IConventionIndex, String, Boolean)

设置全文索引的 KEY INDEX 名称。 设置非 null 值会将此索引标记为全文索引。

SetFullTextKeyIndex(IMutableIndex, String)

设置全文索引的 KEY INDEX 名称。 设置非 null 值会将此索引标记为全文索引。

SetFullTextKeyIndex(IConventionIndex, String, Boolean)

Source:
SqlServerIndexExtensions.cs

设置全文索引的 KEY INDEX 名称。 设置非 null 值会将此索引标记为全文索引。

public static string? SetFullTextKeyIndex(this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string? keyIndexName, bool fromDataAnnotation = false);
static member SetFullTextKeyIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> string
<Extension()>
Public Function SetFullTextKeyIndex (index As IConventionIndex, keyIndexName As String, Optional fromDataAnnotation As Boolean = false) As String

参数

index
IConventionIndex

索引。

keyIndexName
String

要设置的 KEY INDEX 名称。

fromDataAnnotation
Boolean

指示是否使用数据注释指定了配置。

返回

配置的值。

适用于

SetFullTextKeyIndex(IMutableIndex, String)

Source:
SqlServerIndexExtensions.cs

设置全文索引的 KEY INDEX 名称。 设置非 null 值会将此索引标记为全文索引。

public static void SetFullTextKeyIndex(this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? keyIndexName);
static member SetFullTextKeyIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
<Extension()>
Public Sub SetFullTextKeyIndex (index As IMutableIndex, keyIndexName As String)

参数

index
IMutableIndex

索引。

keyIndexName
String

要设置的 KEY INDEX 名称。

适用于