Share via


IAdHocMapper.GetOrAddEntityType(Type) Method

Definition

Gets the ad-hoc entity type mapped for the given CLR type, or creates the mapping and returns it if it does not exist.

public Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType GetOrAddEntityType (Type clrType);
abstract member GetOrAddEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
Public Function GetOrAddEntityType (clrType As Type) As RuntimeEntityType

Parameters

clrType
Type

The type for which the entity type will be returned.

Returns

The ad-hoc entity type.

Applies to