IEntityType.FindIndex 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
FindIndex(String) |
Gets the index with the given name. Returns |
FindIndex(IReadOnlyList<IReadOnlyProperty>) |
Gets the unnamed index defined on the given properties. Returns |
FindIndex(IReadOnlyProperty) |
Gets the index defined on the given property. Returns |
FindIndex(IReadOnlyList<IProperty>) |
Gets the unnamed index defined on the given properties. Returns Named indexes will not be returned even if the list of properties matches. |
FindIndex(String)
Gets the index with the given name. Returns null
if no such index exists.
public Microsoft.EntityFrameworkCore.Metadata.IIndex FindIndex (string name);
public Microsoft.EntityFrameworkCore.Metadata.IIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IIndex
Public Function FindIndex (name As String) As IIndex
Parameters
- name
- String
The name of the index.
Returns
The index, or null
if none is found.
Applies to
FindIndex(IReadOnlyList<IReadOnlyProperty>)
Gets the unnamed index defined on the given properties. Returns null
if no such index is defined.
public Microsoft.EntityFrameworkCore.Metadata.IIndex? FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IIndex
Public Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IIndex
Parameters
- properties
- IReadOnlyList<IReadOnlyProperty>
The properties to find the index on.
Returns
The index, or null
if none is found.
Remarks
Named indexes will not be returned even if the list of properties matches.
Applies to
FindIndex(IReadOnlyProperty)
Gets the index defined on the given property. Returns null
if no index is defined.
public virtual Microsoft.EntityFrameworkCore.Metadata.IIndex? FindIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IIndex
override this.FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IIndex
Public Overridable Function FindIndex (property As IReadOnlyProperty) As IIndex
Parameters
- property
- IReadOnlyProperty
The property to find the index on.
Returns
The index, or null
if none is found.
Applies to
FindIndex(IReadOnlyList<IProperty>)
Gets the unnamed index defined on the given properties. Returns null
if no such index is defined.
Named indexes will not be returned even if the list of properties matches.
public Microsoft.EntityFrameworkCore.Metadata.IIndex FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IIndex
Public Function FindIndex (properties As IReadOnlyList(Of IProperty)) As IIndex
Parameters
- properties
- IReadOnlyList<IProperty>
The properties to find the index on.
Returns
The index, or null
if none is found.
Applies to
Entity Framework