Loads an entity of the given type EntityType specified by its id. The id can be a simple or multipart value.
You can choose to load only Id fields, or all single value fields, or all multivalue fields, or all temporal fields, or any combination of the the above mentioned cases.
Warning: all fields that are not loaded must be nullable.
Namespace:
Aspectize.CoreAssembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
EntityType GetEntityFields<EntityType>( EntityLoadOption loadOption, Object id, params Object[] otherIdParts ) where EntityType : new(), Entity |
| Visual Basic (Declaration) |
|---|
Function GetEntityFields(Of EntityType As {New, Entity}) ( _ loadOption As EntityLoadOption, _ id As Object, _ ParamArray otherIdParts As Object() _ ) As EntityType |
Parameters
- loadOption
- Type: Aspectize.Core..::.EntityLoadOption
A bitmask comprised of one or more EntityLoadOption which determines which fields to load.
- 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