IReadOnlyEntityType.GetKeys Method

Definition

Gets the primary and alternate keys for this entity type.

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey> GetKeys ();
abstract member GetKeys : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey>
Public Function GetKeys () As IEnumerable(Of IReadOnlyKey)

Returns

The primary and alternate keys.

Applies to