IPrefetchPath2Add Method (IPrefetchPathElement2, ExcludeIncludeFieldsList) |
Adds the specified element to the path.
Namespace: SD.LLBLGen.Pro.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax IPrefetchPathElement2 Add(
IPrefetchPathElement2 elementToAdd,
ExcludeIncludeFieldsList excludedIncludedFields
)
Function Add (
elementToAdd As IPrefetchPathElement2,
excludedIncludedFields As ExcludeIncludeFieldsList
) As IPrefetchPathElement2
Parameters
- elementToAdd
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPrefetchPathElement2
The PrefetchPathElement to add - excludedIncludedFields
- Type: SD.LLBLGen.Pro.ORMSupportClassesExcludeIncludeFieldsList
The list of IEntityField2 objects which have to be excluded or included for the fetch.
If null or empty, all fields are fetched (default). If an instance of ExcludeIncludeFieldsList is passed in and its ExcludeContainedFields property
is set to false, the fields contained in excludedIncludedFields are kept in the query, the rest of the fields in the query are excluded.
Return Value
Type:
IPrefetchPathElement2the element added, so chaining of commands is possible
See Also