IKey IKey Interface

Definition

Represents a primary or alternate key on an entity.

public interface IKey : IAnnotatable
Public Interface IKey
    Inherits IAnnotatable

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

Item[String] Item(String)

Gets the value annotation with the given name, returning null if it does not exist.

(Inherited from IAnnotatable)

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)

Methods

FindAnnotation(String) FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IAnnotatable)

GetAnnotations() GetAnnotations()

Gets all annotations on the current object.

(Inherited from IAnnotatable)