Click or drag to resize

IPrefetchPath2Add Method (IPrefetchPathElement2, Int32)

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.5.0.0 (5.5.18.1019)
Syntax
IPrefetchPathElement2 Add(
	IPrefetchPathElement2 elementToAdd,
	int maxAmountOfItemsToReturn
)

Parameters

elementToAdd
Type: SD.LLBLGen.Pro.ORMSupportClassesIPrefetchPathElement2
The PrefetchPathElement to add
maxAmountOfItemsToReturn
Type: SystemInt32
Maximum amount of items to fetch of the set of entities specified by the element.

Return Value

Type: IPrefetchPathElement2
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