共用方式為


ConventionEntityTypeExtensions.GetRootType(IConventionEntityType) 方法

定義

取得指定實體類型的根基底類型。

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

參數

entityType
IConventionEntityType

實體類型。

傳回

根基底類型。 如果指定的實體類型不是衍生類型,則會傳回相同的實體類型。

適用於