Udostępnij za pośrednictwem


MutableEntityTypeExtensions.FindIndex(IMutableEntityType, IProperty) Metoda

Definicja

Pobiera indeks zdefiniowany dla danej właściwości. Zwraca wartość null, jeśli nie zdefiniowano indeksu.

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 jednostki.

property
IProperty

Właściwość do znalezienia indeksu.

Zwraca

Indeks lub wartość null, jeśli nie zostanie znaleziona żadna.

Dotyczy