RuntimeModel.FindAdHocEntityType(Type) Method

Definition

Gets the entity type with the given name. Returns null if no entity type with the given name has been mapped as an ad-hoc type.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType? FindAdHocEntityType (Type clrType);
abstract member FindAdHocEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
override this.FindAdHocEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
Public Overridable Function FindAdHocEntityType (clrType As Type) As RuntimeEntityType

Parameters

clrType
Type

The CLR type of the entity type to find.

Returns

The entity type, or null if none is found.

Applies to