Udostępnij za pośrednictwem


IConventionEntityType.FindIndex Metoda

Definicja

Przeciążenia

FindIndex(IReadOnlyProperty)

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

FindIndex(IReadOnlyList<IProperty>)

Pobiera nienazwany indeks zdefiniowany we podanych właściwościach. Zwraca wartość null , jeśli nie zdefiniowano indeksu.

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

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Pobiera nienazwany indeks zdefiniowany we podanych właściwościach. Zwraca wartość null , jeśli nie zdefiniowano indeksu.

FindIndex(String)

Pobiera indeks o podanej nazwie. Zwraca wartość null , jeśli taki indeks nie istnieje.

FindIndex(IReadOnlyProperty)

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? FindIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function FindIndex (property As IReadOnlyProperty) As IConventionIndex

Parametry

property
IReadOnlyProperty

Właściwość do znalezienia indeksu.

Zwraca

Indeks lub null jeśli żaden z nich nie zostanie znaleziony.

Uwagi

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

Dotyczy

FindIndex(IReadOnlyList<IProperty>)

Pobiera nienazwany indeks zdefiniowany we podanych właściwościach. Zwraca wartość null , jeśli nie zdefiniowano indeksu.

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

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function FindIndex (properties As IReadOnlyList(Of IProperty)) As IConventionIndex

Parametry

properties
IReadOnlyList<IProperty>

Właściwości do znalezienia indeksu.

Zwraca

Indeks lub null jeśli żaden z nich nie zostanie znaleziony.

Dotyczy

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Pobiera nienazwany indeks zdefiniowany we podanych właściwościach. Zwraca wartość null , jeśli nie zdefiniowano indeksu.

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IConventionIndex

Parametry

properties
IReadOnlyList<IReadOnlyProperty>

Właściwości do znalezienia indeksu.

Zwraca

Indeks lub null jeśli żaden z nich nie zostanie znaleziony.

Uwagi

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

Dotyczy

FindIndex(String)

Pobiera indeks o podanej nazwie. Zwraca wartość null , jeśli taki indeks nie istnieje.

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex FindIndex (string name);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function FindIndex (name As String) As IConventionIndex

Parametry

name
String

Nazwa indeksu do znalezienia.

Zwraca

Indeks lub null jeśli żaden z nich nie zostanie znaleziony.

Dotyczy