RelationalIndexExtensions.SetFilter 方法

定义

重载

SetFilter(IMutableIndex, String)

设置索引筛选器表达式。

SetFilter(IConventionIndex, String, Boolean)

设置索引筛选器表达式。

SetFilter(IMutableIndex, String)

设置索引筛选器表达式。

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

参数

index
IMutableIndex

索引。

value
String

要设置的值。

适用于

SetFilter(IConventionIndex, String, Boolean)

设置索引筛选器表达式。

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

参数

index
IConventionIndex

索引。

value
String

要设置的值。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于