Partager via


IConventionEntityType.AddIndex Méthode

Définition

Surcharges

AddIndex(IConventionProperty, Boolean)

Ajoute un index à ce type d’entité.

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Ajoute un index sans nom à ce type d’entité.

AddIndex(IConventionProperty, String, Boolean)

Ajoute un index nommé à ce type d’entité.

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Ajoute un index nommé à ce type d’entité.

AddIndex(IConventionProperty, Boolean)

Ajoute un index à ce type d’entité.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool fromDataAnnotation = false);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function AddIndex (property As IConventionProperty, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Paramètres

property
IConventionProperty

Propriété à indexer.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Index nouvellement créé.

S’applique à

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

Ajoute un index sans nom à ce type d’entité.

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function AddIndex (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Paramètres

properties
IReadOnlyList<IConventionProperty>

Propriétés à indexer.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Index nouvellement créé.

S’applique à

AddIndex(IConventionProperty, String, Boolean)

Ajoute un index nommé à ce type d’entité.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Overridable Function AddIndex (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Paramètres

property
IConventionProperty

Propriété à indexer.

name
String

Nom de l’index.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Index nouvellement créé.

S’applique à

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

Ajoute un index nommé à ce type d’entité.

public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, string name, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, string name, bool fromDataAnnotation = false);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function AddIndex (properties As IReadOnlyList(Of IConventionProperty), name As String, Optional fromDataAnnotation As Boolean = false) As IConventionIndex

Paramètres

properties
IReadOnlyList<IConventionProperty>

Propriétés à indexer.

name
String

Nom de l’index.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Index nouvellement créé.

S’applique à