RelationalIndexExtensions.SetFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetFilter(IMutableIndex, String) |
Sets the index filter expression. |
SetFilter(IConventionIndex, String, Boolean) |
Sets the index filter expression. |
SetFilter(IMutableIndex, String)
Sets the index filter expression.
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)
Parameters
- index
- IMutableIndex
The index.
- value
- String
The value to set.
Applies to
SetFilter(IConventionIndex, String, Boolean)
Sets the index filter expression.
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
Parameters
- index
- IConventionIndex
The index.
- value
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework