ITypeBase ITypeBase Interface

Represents a type in an IModel.

Syntax

Declaration

public interface ITypeBase : IAnnotatablePublic Interface ITypeBase
    Inherits IAnnotatable

Inherited Members

Item[String],
Item(String),
FindAnnotation(String),
FindAnnotation(String),
GetAnnotations()
GetAnnotations()

Properties summary

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.

Gets the model that this type belongs to.

Gets the name of this type.

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

    Property Value

    • System.Type
      System.Type
  • Model
    Model

    Gets the model that this type belongs to.

    IModel Model { get; }ReadOnly Property Model As IModel

    Property Value

  • Name
    Name

    Gets the name of this type.

    string Name { get; }ReadOnly Property Name As String

    Property Value

    • System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.dll