Partager via


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Méthode

Définition

Ajoute une nouvelle clé de remplacement à ce type d’entité.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function AddKey (properties As IReadOnlyList(Of RuntimeProperty)) As RuntimeKey

Paramètres

properties
IReadOnlyList<RuntimeProperty>

Propriétés qui composent la clé de remplacement.

Retours

Clé nouvellement créée.

S’applique à