EntityTypeExtensions.FindIndex(IEntityType, IProperty) 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.IIndex FindIndex (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IIndex
<Extension()>
Public Function FindIndex (entityType As IEntityType, property As IProperty) As IIndex

Parameter

entityType
IEntityType

Der Entitätstyp.

property
IProperty

Die Eigenschaft, für die der Index gesucht werden soll.

Gibt zurück

Der Index oder NULL, wenn keiner gefunden wird.

Gilt für: