Highway Framework  Release 1.0.1.0
The fastest and smoothest way to great architecture
 All Classes Namespaces Functions Variables Properties Events
Public Member Functions
Highway.Data.QueryObjects.AsyncQuery< T > Class Template Reference
Inheritance diagram for Highway.Data.QueryObjects.AsyncQuery< T >:
Highway.Data.Interfaces.IAsyncQuery< T > Highway.Data.Interfaces.IQueryBase

List of all members.

Public Member Functions

 AsyncQuery (IQuery< T > query)
 Constructs an AsyncQuery from an existing non-Async Query
Task< IEnumerable< T > > Execute (IDataContext context)
 This creates a task that executes the expression in ContextQuery on the context that is passed in, resulting in a IQueryable{T} that is returned as an IEnumerable{T}
string OutputSQLStatement (IDataContext context)
 This executes the expression against the passed in context to generate the SQL statement, but doesn't execute the IQueryable against the data context

Member Function Documentation

template<T >
Highway.Data.QueryObjects.AsyncQuery< T >.AsyncQuery ( IQuery< T >  query)
inline

Constructs an AsyncQuery from an existing non-Async Query

Parameters:
query
template<T >
Task<IEnumerable<T> > Highway.Data.QueryObjects.AsyncQuery< T >.Execute ( IDataContext  context)
inline

This creates a task that executes the expression in ContextQuery on the context that is passed in, resulting in a IQueryable{T} that is returned as an IEnumerable{T}

Parameters:
contextthe data context that the query should be executed against
Returns:
A Task{T} that returns a collection of T that the query materialized if any

Implements Highway.Data.Interfaces.IAsyncQuery< T >.

template<T >
string Highway.Data.QueryObjects.AsyncQuery< T >.OutputSQLStatement ( IDataContext  context)
inline

This executes the expression against the passed in context to generate the SQL statement, but doesn't execute the IQueryable against the data context

Parameters:
contextThe data context that the query is evaluated and the SQL is generated against
Returns:
The SQL Statement from the Query

Implements Highway.Data.Interfaces.IQueryBase.


The documentation for this class was generated from the following file: