Share via


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Methode

Definition

Fügt diesem Entitätstyp einen neuen alternativen Schlüssel hinzu.

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

Parameter

properties
IReadOnlyList<RuntimeProperty>

Die Eigenschaften, aus denen der alternative Schlüssel besteht.

Gibt zurück

Der neu erstellte Schlüssel.

Gilt für: