Partager via


IReadOnlyEntityType.FindIndex Méthode

Définition

Surcharges

FindIndex(IReadOnlyProperty)

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

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(IReadOnlyProperty)

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

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

Paramètres

property
IReadOnlyProperty

Propriété 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(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 Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IReadOnlyIndex

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 Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Function FindIndex (name As String) As IReadOnlyIndex

Paramètres

name
String

Nom de l’index à rechercher.

Retours

Index ou null si aucun n’est trouvé.

S’applique à