Method AsObjectsAsync
AsObjectsAsync<TResult, T1>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, TResult>)
Add this method to an ExecutableQuery<TIn, TOut> method chain to map the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
- See Also
AsObjectsAsync<TResult, T1, T2>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4, T5>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, T5, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4, T5>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, T5, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, T5, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
T5
The type of the fifth parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, T5, T6, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, T5, T6, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, T5, T6, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
T5
The type of the fifth parameter to the mapping function.
T6
The type of the sixth parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, T5, T6, T7, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, T5, T6, T7, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, T5, T6, T7, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
T5
The type of the fifth parameter to the mapping function.
T6
The type of the sixth parameter to the mapping function.
T7
The type of the seventh parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
T5
The type of the fifth parameter to the mapping function.
T6
The type of the sixth parameter to the mapping function.
T7
The type of the seventh parameter to the mapping function.
T8
The type of the eighth parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
T5
The type of the fifth parameter to the mapping function.
T6
The type of the sixth parameter to the mapping function.
T7
The type of the seventh parameter to the mapping function.
T8
The type of the eighth parameter to the mapping function.
T9
The type of the ninth parameter to the mapping function.
AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Task<EagerResult<IReadOnlyList<IRecord>>>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)
Maps the results to objects using a delegate as part of the query execution.
public static Task<IReadOnlyList<TResult>> AsObjectsAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this Task<EagerResult<IReadOnlyList<IRecord>>> recordsTask, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> map)
Parameters
recordsTask
Task<EagerResult<IReadOnlyList<IRecord>>>The task that will return the records.
map
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>The delegate to use to map the records to objects.
Returns
- Task<IReadOnlyList<TResult>>
A task that will return the mapped objects.
Type Parameters
TResult
The type to map to.
T1
The type of the first parameter to the mapping function.
T2
The type of the second parameter to the mapping function.
T3
The type of the third parameter to the mapping function.
T4
The type of the fourth parameter to the mapping function.
T5
The type of the fifth parameter to the mapping function.
T6
The type of the sixth parameter to the mapping function.
T7
The type of the seventh parameter to the mapping function.
T8
The type of the eighth parameter to the mapping function.
T9
The type of the ninth parameter to the mapping function.
T10
The type of the tenth parameter to the mapping function.