Share via


RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) Method

Definition

Adds a new alternate key to this entity type.

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

Parameters

properties
IReadOnlyList<RuntimeProperty>

The properties that make up the alternate key.

Returns

The newly created key.

Applies to