Sdílet prostřednictvím


ConventionEntityTypeExtensions.FindIndex Metoda

Definice

Získá nepojmenovaný index definovaný v dané vlastnosti. Vrátí hodnotu null , pokud není definován žádný takový index.

Pojmenované indexy nebudou vráceny ani v případě, že se seznam vlastností shoduje.

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

Parametry

entityType
IConventionEntityType

Typ entity.

property
IProperty

Vlastnost, ve které se má index najít.

Návraty

Index nebo null, pokud se žádný nenajde.

Platí pro