Udostępnij przez


IEntityType.FindIndex Metoda

Definicja

Przeciążenia

FindIndex(String)

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

FindIndex(IReadOnlyList<IReadOnlyProperty>)

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

FindIndex(IReadOnlyProperty)

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

FindIndex(IReadOnlyList<IProperty>)

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

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

FindIndex(String)

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

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

Parametry

name
String

Nazwa 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 taki indeks nie jest zdefiniowany.

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

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 będzie zgodna.

Dotyczy

FindIndex(IReadOnlyProperty)

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

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

Parametry

property
IReadOnlyProperty

Właściwość do znalezienia indeksu.

Zwraca

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

Dotyczy

FindIndex(IReadOnlyList<IProperty>)

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

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

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

Parametry

properties
IReadOnlyList<IProperty>

Właściwości do znalezienia indeksu.

Zwraca

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

Dotyczy