QueryableExtensionMethods.ToArrayAsync<TResult> Method (IQueryable<TResult>) |
Executes source asynchronously and stores the results in a new TResult[]. Requires the IQueryable to implement ILLBLGenProQuery.
Namespace: SD.LLBLGen.Pro.LinqSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntaxpublic static Task<TResult[]> ToArrayAsync<TResult>(
this IQueryable<TResult> source
)
<ExtensionAttribute>
Public Shared Function ToArrayAsync(Of TResult) (
source As IQueryable(Of TResult)
) As Task(Of TResult())
Parameters
- source
- Type: System.Linq.IQueryable<TResult>
The source.
Type Parameters
- TResult
- The type of the result.
Return Value
Type:
Task<TResult[]>
The results of source in a new TResult[].
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable<TResult>. 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).
RemarksNot usable wrapped inside a Linq query. Use this method to execute a linq query asynchronously. Enumerates results twice.
See Also