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

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

Item[String] Item(String)

Gets or sets the value of the annotation with the given name.

(Inherited from IMutableAnnotatable)

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)

Methods

AddAnnotation(String, Object) AddAnnotation(String, Object)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IMutableAnnotatable)

FindAnnotation(String) FindAnnotation(String)

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

(Inherited from IMutableAnnotatable)

GetAnnotations() GetAnnotations()

Gets all annotations on the current object.

(Inherited from IMutableAnnotatable)

RemoveAnnotation(String) RemoveAnnotation(String)

Removes the given annotation from this object.

(Inherited from IMutableAnnotatable)