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

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於