Sdílet prostřednictvím


RuntimeEntityType.FindIndex Metoda

Definice

Přetížení

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Získá nepojmenovaný index definovaný na dané vlastnosti. Vrátí hodnotu null , pokud žádný takový index není definován.

FindIndex(String)

Získá index s daným názvem. Vrátí hodnotu null , pokud takový index neexistuje.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Získá nepojmenovaný index definovaný na dané vlastnosti. Vrátí hodnotu null , pokud žádný takový index není definován.

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

Parametry

properties
IReadOnlyList<IReadOnlyProperty>

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

Návraty

Index nebo null pokud nebyl nalezen žádný.

Poznámky

Pojmenované indexy se nevrátí ani v případě, že se seznam vlastností shoduje.

Platí pro

FindIndex(String)

Získá index s daným názvem. Vrátí hodnotu null , pokud takový index neexistuje.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Public Overridable Function FindIndex (name As String) As RuntimeIndex

Parametry

name
String

Název indexu.

Návraty

Index nebo null pokud nebyl nalezen žádný.

Platí pro