IEntityType.FindIndex Méthode

Définition

Surcharges

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.

FindIndex(IReadOnlyProperty)

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

FindIndex(IReadOnlyList<IProperty>)

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.

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

FindIndex(String)

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

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

Paramètres

name
String

Nom de l’index.

Retours

Index ou null si aucun n’est trouvé.

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.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

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

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

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

Paramètres

property
IReadOnlyProperty

Propriété sur laquelle rechercher l’index.

Retours

Index ou null si aucun n’est trouvé.

S’applique à

FindIndex(IReadOnlyList<IProperty>)

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.

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

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

Paramètres

properties
IReadOnlyList<IProperty>

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

Retours

Index ou null si aucun n’est trouvé.

S’applique à