Loads a graph of all related entities to a given entity following "Container" relations that is relations with a Role marked as a container. Only single value fields are loaded. Multivalue or temporal fields are not loaded. For loading of multivalue or temporal fields please refer to LoadEntityGraphFields or LoadEntitiesGraphFields methods.

Namespace: Aspectize.Core
Assembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
void LoadEntitiesGraph<EntityType>(
	IEntity entity
)
where EntityType : new(), Entity, IEntity, IDataWrapper
Visual Basic
Sub LoadEntitiesGraph(Of EntityType As {New, Entity, IEntity, IDataWrapper}) ( _
	entity As IEntity _
)

Parameters

entity
Type: IEntity
The entity to begin with.

Type Parameters

EntityType
Type of Entity to load

Examples

CopyC#
AdventureWorks.Production.ProductCategory productCategory = dm.GetEntity<AdventureWorks.Production.ProductCategory>(2);

dm.LoadEntitiesGraph<AdventureWorks.Production.ProductCategory>(productCategory);
CopyVB.NET
Dim productCategory As AdventureWorks.Production.ProductCategory = dm.GetEntity(Of AdventureWorks.Production.ProductCategory)(2)

dm.LoadEntitiesGraph(Of AdventureWorks.Production.ProductCategory)(productCategory)

See Also