IKey IKey Interface

Represents a primary or alternate key on an entity.

Syntax

Declaration

public interface IKey : IAnnotatablePublic Interface IKey
    Inherits IAnnotatable

Inherited Members

Item[String],
Item(String),
FindAnnotation(String),
FindAnnotation(String),
GetAnnotations()
GetAnnotations()

Properties summary

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).

Gets the properties that make up the key.

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

    Property Value

  • Properties
    Properties

    Gets the properties that make up the key.

    IReadOnlyList<IProperty> Properties { get; }ReadOnly Property Properties As IReadOnlyList(Of IProperty)

    Property Value

    • System.Collections.Generic.IReadOnlyList<T><IProperty>
      System.Collections.Generic.IReadOnlyList<T>(Of IProperty)

Details

Assembly

Microsoft.EntityFrameworkCore.dll