IReadOnlyEntityType.GetRootType 方法

定义

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

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

返回

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

适用于