Share via


RuntimeEntityType.FindIndex Méthode

Définition

Surcharges

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Obtient l’index sans nom défini sur les propriétés données. Retourne null si aucun index de ce type n’est défini.

FindIndex(String)

Obtient l’index avec le nom donné. Retourne null si aucun index de ce type n’existe.

FindIndex(IReadOnlyList<IReadOnlyProperty>)

Obtient l’index sans nom défini sur les propriétés données. Retourne null si aucun index de ce type n’est défini.

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

Paramètres

properties
IReadOnlyList<IReadOnlyProperty>

Propriétés sur laquelle rechercher l’index.

Retours

Index ou null si aucun n’est trouvé.

Remarques

Les index nommés ne sont pas retournés même si la liste des propriétés correspond.

S’applique à

FindIndex(String)

Obtient l’index avec le nom donné. Retourne null si aucun index de ce type n’existe.

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

Paramètres

name
String

Nom de l’index.

Retours

Index ou null si aucun n’est trouvé.

S’applique à