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)

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)

Inherited from IAnnotatable

GetAnnotations() GetAnnotations()

Inherited from IAnnotatable