Udostępnij za pośrednictwem


ConventionEntityTypeExtensions.FindIndex Metoda

Definicja

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

Nazwane indeksy nie zostaną zwrócone, nawet jeśli lista właściwości jest zgodna.

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

property
IProperty

Właściwość do znalezienia indeksu.

Zwraca

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

Dotyczy