IConventionEntityType.GetRootType 方法

定义

获取此实体类型的根基类型。

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType GetRootType ();
abstract member GetRootType : unit -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
override this.GetRootType : unit -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Overridable Function GetRootType () As IConventionEntityType

返回

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

适用于