IReadOnlyEntityType.FindIndex Method

Definition

Overloads

FindIndex(IReadOnlyProperty)

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

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

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
override this.FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Overridable Function FindIndex (property As IReadOnlyProperty) As IReadOnlyIndex

Parameters

property
IReadOnlyProperty

The property 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(IReadOnlyList<IReadOnlyProperty>)

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

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

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 Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Function FindIndex (name As String) As IReadOnlyIndex

Parameters

name
String

The name of the index to find.

Returns

The index, or null if none is found.

Applies to