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

傳回

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

適用於