IMutableTypeBase IMutableTypeBase Interface

Definition

Represents a type in an IMutableModel.

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

public interface IMutableTypeBase : ITypeBase, IMutableAnnotatable, IAnnotatable
Public Interface IMutableTypeBase
    Inherits ITypeBase, IMutableAnnotatable

Properties

ClrType ClrType

Gets the CLR class that is used to represent instances of this type. Returns null if the type does not have a corresponding CLR class (known as a shadow type).

Shadow types are not currently supported in a model that is used at runtime with a DbContext. Therefore, shadow types will only exist in migration model snapshots, etc.

(Inherited from ITypeBase)

Item[String] Item(String)

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

(Inherited from IMutableAnnotatable)

Model Model

Gets the model that this type belongs to.

IMutableModel Model { get; }
ReadOnly Property Model As IMutableModel

Name Name

Gets the name of this type.

(Inherited from ITypeBase)

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)