IMutableEntityType.GetRootType Method

Definition

Gets the root base type for a given entity type.

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

Returns

The root base type. If the given entity type is not a derived type, then the same entity type is returned.

Applies to