Sdílet prostřednictvím


EntityTypeExtensions.FindIndex(IEntityType, IProperty) 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.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

Parametry

entityType
IEntityType

Typ entity.

property
IProperty

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

Návraty

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

Platí pro