IAdHocMapper.GetOrAddEntityType(Type) 方法

定义

获取为给定 CLR 类型映射的即席实体类型,或者创建映射并返回该映射(如果不存在)。

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

参数

clrType
Type

将为其返回实体类型的类型。

返回

即席实体类型。

适用于