DaoBaseFetchQueryAsyncT Method (PlainSQLFetchAspects, ITransaction, CancellationToken, String, Object) |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntaxpublic virtual Task<List<T>> FetchQueryAsync<T>(
PlainSQLFetchAspects fetchAspects,
ITransaction containingTransaction,
CancellationToken cancellationToken,
string sqlQuery,
Object parameterValues = null
)
Public Overridable Function FetchQueryAsync(Of T) (
fetchAspects As PlainSQLFetchAspects,
containingTransaction As ITransaction,
cancellationToken As CancellationToken,
sqlQuery As String,
Optional parameterValues As Object = Nothing
) As Task(Of List(Of T))
Parameters
- fetchAspects
- Type: SD.LLBLGen.Pro.ORMSupportClassesPlainSQLFetchAspects
The fetch aspects for this query. Can be null, in which case the defaults are used. - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction if caller is added to a transaction, or null of not. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token. - sqlQuery
- Type: SystemString
The SQL query to execute, which returns a resultset. Should contain parameter names for the parameter values, or placeholders for parameter sets.
See documentation for details regarding format specifics. - parameterValues (Optional)
- Type: SystemObject
The object containing the parameter values to use in the query. If it's an object array, parameters using ordening are assumed, otherwise
for each public, non-static property, a parameter is created.
Type Parameters
- T
- The type of the element to project each row to.
Return Value
Type:
TaskListT
A list with 0 or more instances of T, one for each row in the resultset obtained from executing the query constructed from sqlQuery and the specified parameters
Implements
IDaoFetchQueryAsyncT(PlainSQLFetchAspects, ITransaction, CancellationToken, String, Object)
See Also