MutableEntityTypeExtensions.AddIndex Méthode

Définition

Ajoute un index à ce type d’entité.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function AddIndex (entityType As IMutableEntityType, property As IMutableProperty) As IMutableIndex

Paramètres

entityType
IMutableEntityType

Type d'entité.

property
IMutableProperty

Propriété à indexer.

Retours

Index nouvellement créé.

S’applique à