Loads an entity of the given type EntityType specified by its id. The id can be a simple or multipart value.
Only single value fields are loaded. Multivalue or temporal fields are not loaded.
For loading of multivalue or temporal fields please refer to LoadEntityFields or LoadEntitiesFields methods.
Namespace: Aspectize.CoreAssembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
void LoadEntity<EntityType>( Object id, params Object[] otherIdParts ) where EntityType : new(), Entity, IEntity, IDataWrapper |
| Visual Basic |
|---|
Sub LoadEntity(Of EntityType As {New, Entity, IEntity, IDataWrapper}) ( _ id As Object, _ ParamArray otherIdParts As Object() _ ) |
Parameters
- id
- Type: System..::..Object
Either a simple value or the first part of a multipart value.
- otherIdParts
- Type: array<System..::..Object>[]()[][]
The second and onwards parts of a multipart value.
Type Parameters
- EntityType
- Type of Entity to load
Examples
// Load all Entity with no criteria dm.LoadEntity<AdventureWorks.Production.Product>(3);
' Load all Entity with no criteria dm.LoadEntity(Of AdventureWorks.Production.Product)(3)