Click or drag to resize

ProjectionListExpression.AddElement Method (String, Object, Type, Int32, MappingTracker, Boolean)

Adds the specified element to the projectionlist

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses.ExpressionClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
public int AddElement(
	string name,
	Object element,
	Type elementType,
	int elementIndex,
	MappingTracker trackedMappings,
	bool containingElementInInheritanceHierarchy = false
)

Parameters

name
Type: System.String
The name.
element
Type: System.Object
The element.
elementType
Type: System.Type
Type of the element.
elementIndex
Type: System.Int32
Index of the element in the indices array to pass to the projection func.
trackedMappings
Type: SD.LLBLGen.Pro.LinqSupportClasses.MappingTracker
The tracked mappings
containingElementInInheritanceHierarchy (Optional)
Type: System.Boolean
If true, all fields are added to the tracker's renamed field store, as they're considered renamed. All fields in an inheritance entity have aliases looking like Fn_m, where n and m are integers.

Return Value

Type: Int32
index in Elements to which the element has been added or the index of the element it was a duplicate of if it was already there
See Also