Loads all entities of the given type EntityType filtered by criteria and continues to load the graph of all related entities 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 LoadEntitiesGraphFields methods.
Namespace: Aspectize.CoreAssembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
void LoadEntitiesGraph<EntityType>( QueryCriteria criteria ) where EntityType : new(), Entity, IEntity, IDataWrapper |
| Visual Basic |
|---|
Sub LoadEntitiesGraph(Of EntityType As {New, Entity, IEntity, IDataWrapper}) ( _ criteria As QueryCriteria _ ) |
Parameters
- criteria
- Type: Aspectize.Core..::..QueryCriteria
The critiria to meet.
Type Parameters
- EntityType
- Type of Entity to load
Examples
// Load all Entity with filter criteria QueryCriteria queryCriteria = new QueryCriteria(AdventureWorks.Production.ProductCategory.Fields.Name, ComparisonOperator.Equal, "Bikes"); dm.LoadEntitiesGraph<AdventureWorks.Production.ProductCategory>(queryCriteria);
' Load all Entity with filter criteria Dim queryCriteria As QueryCriteria = New QueryCriteria(AdventureWorks.Production.ProductCategory.Fields.Name, ComparisonOperator.Equal, "Bikes") dm.LoadEntitiesGraph(Of AdventureWorks.Production.ProductCategory)(queryCriteria)