IMutablePropertyBase IMutablePropertyBase Interface


Base type for navigation and scalar properties.

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

public interface IMutablePropertyBase : IPropertyBase, IMutableAnnotatable, IAnnotatable
Public Interface IMutablePropertyBase
    Inherits IPropertyBase, IMutableAnnotatable


ClrType ClrType

Gets the type of value that this property holds.

(Inherited from IPropertyBase)

DeclaringEntityType DeclaringEntityType

Gets the entity type that this property belongs to.

(Inherited from IPropertyBase)

DeclaringType DeclaringType

Gets the type that this property belongs to.

IMutableTypeBase DeclaringType { get; }
ReadOnly Property DeclaringType As IMutableTypeBase

FieldInfo FieldInfo

Gets the FieldInfo for the underlying CLR field that this object represents. This may be null for shadow properties or if the backing field for the property is not known.

(Inherited from IPropertyBase)

IsShadowProperty IsShadowProperty

Gets a value indicating whether this is a shadow property. A shadow property is one that does not have a corresponding property in the entity class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the entity class.

(Inherited from IPropertyBase)

Item[String] Item(String)

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

(Inherited from IMutableAnnotatable)

Name Name

Gets the name of the property.

(Inherited from IPropertyBase)

PropertyInfo PropertyInfo

Gets the PropertyInfo for the underlying CLR property that this object represents. This may be null for shadow properties or properties mapped directly to fields.

(Inherited from IPropertyBase)


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)