DynamicRelationBaseIRelationToggleArtificialAliasingForTargetPerEntityRelations Method |
Enables / disables the artificial aliasing for target per entity relations. This method is used to enable the artificial aliasing of entities which
are in a hierarchy of TargetPerEntity and which are in this relation. This is switched on for dyn/typedlist fetches to be sure
dyn/typedlists with fields from multiple entities in the same inheritance hierarchy will be retrievable properly, as they need aliasing under the hood
but if the developer didn't alias the entities, the query will fail because the supertype(s) aren't joined multiple types.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax void IRelation.ToggleArtificialAliasingForTargetPerEntityRelations(
bool enable
)
Private Sub ToggleArtificialAliasingForTargetPerEntityRelations (
enable As Boolean
) Implements IRelation.ToggleArtificialAliasingForTargetPerEntityRelations
Parameters
- enable
- Type: SystemBoolean
if set to true, enable artificial aliasing, otherwise false (default).
Implements
IRelationToggleArtificialAliasingForTargetPerEntityRelations(Boolean)Remarks Artificial aliasing is disabled by default
See Also