Sdílet prostřednictvím


MutableEntityTypeExtensions.FindIndex(IMutableEntityType, IProperty) Metoda

Definice

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

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

Parametry

entityType
IMutableEntityType

Typ entity.

property
IProperty

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

Návraty

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

Platí pro