ConventionEntityTypeExtensions.FindIndex Methode

Definition

Ruft den unbenannten Index ab, der für die angegebene Eigenschaft definiert ist. Gibt zurück null , wenn kein solcher Index definiert ist.

Benannte Indizes werden auch dann nicht zurückgegeben, wenn die Liste der Eigenschaften übereinstimmt.

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

Parameter

entityType
IConventionEntityType

Der Entitätstyp.

property
IProperty

Die Eigenschaft, in der der Index gefunden werden soll.

Gibt zurück

Der Index oder NULL, wenn keiner gefunden wird.

Gilt für: