Sdílet prostřednictvím


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Metoda

Definice

Přidá k tomuto typu entity nový alternativní klíč.

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

Parametry

properties
IReadOnlyList<RuntimeProperty>

Vlastnosti, které tvoří alternativní klíč.

Návraty

Nově vytvořený klíč.

Platí pro