IPrefetchPathAdd Method (IPrefetchPathElement, 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.4.0.0 (5.4.0)
Syntax IPrefetchPathElement Add(
IPrefetchPathElement elementToAdd,
int maxAmountOfItemsToReturn
)
Function Add (
elementToAdd As IPrefetchPathElement,
maxAmountOfItemsToReturn As Integer
) As IPrefetchPathElement
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.
Return Value
Type:
IPrefetchPathElementthe element added, so chaining of commands is possible
Exceptions Exception | Condition |
---|
ArgumentException | When elementToAdd is not specifying a fetch meant for an entity of type rootEntityType set in the
constructor of this class |
See Also