GetRootEntityType Method

DomainServiceDescription.GetRootEntityType Method

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Returns the root type for the specified entity type.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

public Type GetRootEntityType(
	Type entityType


Type: System.Type
The entity type whose root is required.

Return Value

Type: System.Type
The type of the root or null if the given entityType has no base types.

The returned root type is the least derived entity type of the entity type hierarchy that is exposed through a domain service.

© 2015 Microsoft