IReadOnlyTypeBase.ClrType Property

Definition

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).

public Type ClrType { get; }
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers]
public Type ClrType { get; }
member this.ClrType : Type
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers>]
member this.ClrType : Type
Public ReadOnly Property ClrType As Type

Property Value

Attributes

Remarks

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.

Applies to