Loads all relations of the given type Relation. The related Entities must be loaded previously.

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

Syntax

C#
void LoadRelations<Relation>()
where Relation : DataWrapper, IDataWrapper, IRelation
Visual Basic
Sub LoadRelations(Of Relation As {DataWrapper, IDataWrapper, IRelation})

Type Parameters

Relation
Type of Relation to load

Examples

CopyC#
// Load all Relation ProductProductPhoto

dm.LoadEntities<AdventureWorks.Production.Product>(3);

dm.LoadEntities<AdventureWorks.Production.ProductPhoto>(3);

dm.LoadRelations<AdventureWorks.Production.ProductProductPhoto>(3);
CopyVB.NET
' Load all Relation ProductProductPhoto


dm.LoadEntities(Of AdventureWorks.Production.Product)(3)

dm.LoadEntities(Of AdventureWorks.Production.ProductPhoto)(3)

dm.LoadRelations(Of AdventureWorks.Production.ProductProductPhoto)(3)

See Also