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.

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

Syntax

C#
EntityType GetEntity<EntityType>(
	Object id,
	params Object[] otherIdParts
)
where EntityType : new(), Entity
Visual Basic (Declaration)
Function GetEntity(Of EntityType As {New, Entity}) ( _
	id As Object, _
	ParamArray otherIdParts As Object() _
) As EntityType

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

Return Value

EntityType loaded by the queries

See Also