EntityTypeExtensions.GetRootType(IEntityType) 方法

定义

获取给定实体类型的根基类型。

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType GetRootType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetRootType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function GetRootType (entityType As IEntityType) As IEntityType

参数

entityType
IEntityType

要查找其根的类型。

返回

根基类型。 如果给定的实体类型不是派生类型,则返回相同的实体类型。

适用于