Partager via


IMutableEntityType.FindIndex Méthode

Définition

Surcharges

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(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 défini sur la propriété donnée. Retourne null si aucun index n’est défini.

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

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.IMutableIndex FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function FindIndex (properties As IReadOnlyList(Of IProperty)) As IMutableIndex

Paramètres

properties
IReadOnlyList<IProperty>

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

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

Paramètres

name
String

Nom de l’index.

Retours

Index ou null si aucun n’est trouvé.

S’applique à