MutableEntityTypeExtensions.FindIndex(IMutableEntityType, IProperty) Method

Definition

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex FindIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function FindIndex (entityType As IMutableEntityType, property As IProperty) As IMutableIndex

Parameters

entityType
IMutableEntityType

The entity type.

property
IProperty

The property to find the index on.

Returns

The index, or null if none is found.

Applies to