Share via


RuntimeEntityType.FindIndex Method

Definition

Overloads

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Gets the unnamed index defined on the given properties. Returns null if no such index is defined.

FindIndex(String)

Gets the index with the given name. Returns null if no such index exists.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Gets the unnamed index defined on the given properties. Returns null if no such index is defined.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex? FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Public Overridable Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As RuntimeIndex

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(String)

Gets the index with the given name. Returns null if no such index exists.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Public Overridable Function FindIndex (name As String) As RuntimeIndex

Parameters

name
String

The name of the index.

Returns

The index, or null if none is found.

Applies to