ITypeBase ITypeBase Interface

Definition

Represents a type in an IModel.

public interface ITypeBase : IAnnotatable
Public Interface ITypeBase
    Inherits IAnnotatable

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.

Type ClrType { get; }
ReadOnly Property ClrType As Type
Value
System.Type System.Type

Item[String] Item(String)

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

(Inherited from IAnnotatable)

Model Model

Gets the model that this type belongs to.

IModel Model { get; }
ReadOnly Property Model As IModel
Value
IModel IModel

Name Name

Gets the name of this type.

string Name { get; }
ReadOnly Property Name As String
Value
System.String System.String

Methods

FindAnnotation(String) FindAnnotation(String)

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

(Inherited from IAnnotatable)

GetAnnotations() GetAnnotations()

Gets all annotations on the current object.

(Inherited from IAnnotatable)