MetadataWorkspaceExtensions.GetRootOrSelf Method (EntityType)

 

Returns this EntityType if it has no base type. Otherwise, returns the top-most base type.

Namespace:   Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

public static EntityType GetRootOrSelf(
	this EntityType entityType
)

Parameters

entityType
Type: System.Data.Entity.Core.Metadata.Edm.EntityType

The EntityType.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EntityType

The top-most base type.