IMutableKey IMutableKey Interface

Definition

Represents a primary or alternate key on an entity.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IKey represents a ready-only view of the same metadata.

public interface IMutableKey : IMutableAnnotatable, IKey, IAnnotatable
Public Interface IMutableKey
    Inherits IMutableAnnotatable, IKey

Inherited Members

Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable

Item[System.String]Item(System.String)
AddAnnotation(System.String, System.Object)AddAnnotation(System.String, System.Object)
FindAnnotation(System.String)FindAnnotation(System.String)
RemoveAnnotation(System.String)RemoveAnnotation(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).

IMutableEntityType DeclaringEntityType { get; }
ReadOnly Property DeclaringEntityType As IMutableEntityType

Properties Properties

Gets the properties that make up the key.

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