ConventionEntityTypeExtensions.FindIndex Method

Definition

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

Named indexes will not be returned even if the list of properties matches.

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

Parameters

entityType
IConventionEntityType

The entity type.

property
IProperty

The property to find the index on.

Returns

The index, or null if none is found.

Applies to