PersistenceCore.FetchPrefetchPathAsync Method |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntaxpublic static Task FetchPrefetchPathAsync(
QueryParameters rootNodeParameters,
bool forceParameterizedPPath,
ITransaction transactionToUse,
int parameterisedPrefetchPathThreshold,
Func<QueryParameters, Task> fetchNodeFunc,
Func<ITransaction, IPrefetchPathElementCore, QueryParameters, IEntityCollectionCore, Task> mergeManyToManyFunc
)
Public Shared Function FetchPrefetchPathAsync (
rootNodeParameters As QueryParameters,
forceParameterizedPPath As Boolean,
transactionToUse As ITransaction,
parameterisedPrefetchPathThreshold As Integer,
fetchNodeFunc As Func(Of QueryParameters, Task),
mergeManyToManyFunc As Func(Of ITransaction, IPrefetchPathElementCore, QueryParameters, IEntityCollectionCore, Task)
) As Task
Parameters
- rootNodeParameters
- Type: SD.LLBLGen.Pro.ORMSupportClasses.QueryParameters
The parameters. - forceParameterizedPPath
- Type: System.Boolean
if set to true, it always will use a parameterized prefetch path, no matter what. Used for paging
scenario's - transactionToUse
- Type: SD.LLBLGen.Pro.ORMSupportClasses.ITransaction
The transaction to use. Is null in adapter scenarios - parameterisedPrefetchPathThreshold
- Type: System.Int32
The parameterised prefetch path threshold. - fetchNodeFunc
- Type: System.Func<QueryParameters, Task>
The fetch node func, used to fetch the data for the current node. - mergeManyToManyFunc
- Type: System.Func<ITransaction, IPrefetchPathElementCore, QueryParameters, IEntityCollectionCore, Task>
The merge many to many func, which is used in a m:n scenario to merge the fetched
entities into the root entities using a m:n merge which will fetch the intermediate rows to perform the merge.
Return Value
Type:
Task
Exceptions
See Also