IMutableKey IMutableKey Interface

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.

Syntax

Declaration

public interface IMutableKey : IMutableAnnotatable, IKey, IAnnotatablePublic Interface IMutableKey
    Inherits IMutableAnnotatable, IKey

Inherited Members

Item[String],
Item(String),
GetAnnotations(),
GetAnnotations(),
AddAnnotation(String, Object),
AddAnnotation(String, Object),
FindAnnotation(String),
FindAnnotation(String),
RemoveAnnotation(String)
RemoveAnnotation(String)

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

    IMutableEntityType DeclaringEntityType { get; }ReadOnly Property DeclaringEntityType As IMutableEntityType

    Property Value

  • Properties
    Properties

    Gets the properties that make up the key.

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

    Property Value

Details

Assembly

Microsoft.EntityFrameworkCore.dll