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

傳回

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

適用於