Sdílet prostřednictvím


RelationalIndexExtensions.SetFilter Metoda

Definice

Přetížení

SetFilter(IMutableIndex, String)

Nastaví výraz filtru indexu.

SetFilter(IConventionIndex, String, Boolean)

Nastaví výraz filtru indexu.

SetFilter(IMutableIndex, String)

Nastaví výraz filtru indexu.

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)

Parametry

index
IMutableIndex

Index.

value
String

Hodnota k nastavení.

Platí pro

SetFilter(IConventionIndex, String, Boolean)

Nastaví výraz filtru indexu.

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

Parametry

index
IConventionIndex

Index.

value
String

Hodnota k nastavení.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Nakonfigurovaná hodnota.

Platí pro