Click or drag to resize

QueryableExtensionMethodsExecuteAsyncTResult Method (IQueryable, CancellationToken)

Executes the specified IQueryable's asynchronously. Requires the IQueryable to implement ILLBLGenProQuery.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static Task<TResult> ExecuteAsync<TResult>(
	this IQueryable source,
	CancellationToken cancellationToken
)

Parameters

source
Type: System.LinqIQueryable
The source.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Type Parameters

TResult
The type of the result.

Return Value

Type: TaskTResult
The results of source in a new List(Of TResult).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ORMQueryExecutionExceptionsource isn't implementing ILLBLGenProQuery. Can't execute the query asynchronously;null;null;null
Remarks
Not usable wrapped inside a Linq query. Use this method to execute a linq query asynchronously
See Also