IMutableEntityType.AddIndex Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddIndex(IMutableProperty) |
Ajoute un index sans nom à ce type d’entité. |
AddIndex(IReadOnlyList<IMutableProperty>) |
Ajoute un index sans nom à ce type d’entité. |
AddIndex(IMutableProperty, String) |
Ajoute un index nommé à ce type d’entité. |
AddIndex(IReadOnlyList<IMutableProperty>, String) |
Ajoute un index nommé à ce type d’entité. |
AddIndex(IMutableProperty)
Ajoute un index sans nom à ce type d’entité.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty) As IMutableIndex
Paramètres
- property
- IMutableProperty
Propriété à indexer.
Retours
Index nouvellement créé.
S’applique à
AddIndex(IReadOnlyList<IMutableProperty>)
Ajoute un index sans nom à ce type d’entité.
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex
Paramètres
- properties
- IReadOnlyList<IMutableProperty>
Propriétés à indexer.
Retours
Index nouvellement créé.
S’applique à
AddIndex(IMutableProperty, String)
Ajoute un index nommé à ce type d’entité.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty, name As String) As IMutableIndex
Paramètres
- property
- IMutableProperty
Propriété à indexer.
- name
- String
Nom de l’index.
Retours
Index nouvellement créé.
S’applique à
AddIndex(IReadOnlyList<IMutableProperty>, String)
Ajoute un index nommé à ce type d’entité.
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, string name);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty), name As String) As IMutableIndex
Paramètres
- properties
- IReadOnlyList<IMutableProperty>
Propriétés à indexer.
- name
- String
Nom de l’index.
Retours
Index nouvellement créé.