Click or drag to resize

IPrefetchPathAdd Method (IPrefetchPathElement, Int32, IPredicateExpression, IRelationCollection, ISortExpression)

Adds the specified element to the path.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
IPrefetchPathElement Add(
	IPrefetchPathElement elementToAdd,
	int maxAmountOfItemsToReturn,
	IPredicateExpression additionalFilter,
	IRelationCollection additionalFilterRelations,
	ISortExpression additionalSorter
)

Parameters

elementToAdd
Type: SD.LLBLGen.Pro.ORMSupportClassesIPrefetchPathElement
The PrefetchPathElement to add
maxAmountOfItemsToReturn
Type: SystemInt32
Maximum amount of items to fetch of the set of entities specified by the element.
additionalFilter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicateExpression
Additional predicate expression to be added to the filter already in the PrefetchPathElement
additionalFilterRelations
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
Additional relations to be added to the relationcollection already in the PrefetchPathElement
additionalSorter
Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
Additional sort clauses to be added added to the sortexpression already in the PrefetchPathElement

Return Value

Type: IPrefetchPathElement
the element added, so chaining of commands is possible
Exceptions
ExceptionCondition
ArgumentExceptionWhen elementToAdd is not specifying a fetch meant for an entity of type rootEntityType set in the constructor of this class
See Also