I​Key I​Key Interface

Definition

Represents a primary or alternate key on an entity.

public interface IKey : IAnnotatablePublic Interface IKey
    Inherits IAnnotatable

Inherited Members

Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable

Item[System.String]Item(System.String)
FindAnnotation(System.String)FindAnnotation(System.String)

Properties

DeclaringEntityType DeclaringEntityType

Gets the entity type the key is defined on. This may be different from the type that Properties are defined on when the key is defined a derived type in an inheritance hierarchy (since the properties may be defined on a base type).

IEntityType DeclaringEntityType { get; }ReadOnly Property DeclaringEntityType As IEntityType

Properties Properties

Gets the properties that make up the key.

IReadOnlyList<IProperty> Properties { get; }ReadOnly Property Properties As IReadOnlyList(Of IProperty)
Value
System.Collections.Generic.IReadOnlyList<IProperty> System.Collections.Generic.IReadOnlyList(Of IProperty)