Highway Framework
Release 1.0.1.0
The fastest and smoothest way to great architecture
|
The base implementation for Queries that return collections More...
Public Member Functions | |
virtual IEnumerable< T > | Execute (IDataContext context) |
This 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 IQueryableT against the data context | |
Public Member Functions inherited from Highway.Data.QueryObjects.QueryBase | |
void | AddMethodExpression (string methodName, Type[] generics, Expression[] parameters) |
Adds a method to the expression in the query object |
Protected Member Functions | |
virtual IQueryable< T > | ExtendQuery () |
This method allows for the extension of Ordering and Grouping on the prebuild Query | |
IQueryable< T > | AppendExpressions (IQueryable< T > query) |
Gives the ability to apend an IQueryable onto the current query | |
Protected Member Functions inherited from Highway.Data.QueryObjects.QueryBase | |
void | CheckContextAndQuery (object query) |
Checks the context and the Query for null |
Properties | |
Func< IDataContext, IQueryable < T > > | ContextQuery [get, set] |
This holds the expression that will be used to create the IQueryable{T} when executed on the context | |
Properties inherited from Highway.Data.QueryObjects.QueryBase | |
IDataContext | Context [get, set] |
The reference to the IDataContext that gives data connection |
Additional Inherited Members | |
Protected Attributes inherited from Highway.Data.QueryObjects.QueryBase | |
List< Tuple< MethodInfo, Expression[]> > | ExpressionList = new List<Tuple<MethodInfo, Expression[]>>() |
Holds the expressions to be appended | |
Events inherited from Highway.Data.QueryObjects.QueryBase | |
EventHandler< PreQueryEventArgs > | PreQuery |
The event fired just before the query goes to the database | |
EventHandler< PostQueryEventArgs > | PostQuery |
The event fire just after the data is translated into objects but before the data is returned. | |
Events inherited from Highway.Data.Interfaces.IObservableQuery |
The base implementation for Queries that return collections
T | The Type being requested |
|
inlineprotected |
Gives the ability to apend an IQueryable onto the current query
query | The query containing the expressions to append |
|
inlinevirtual |
This executes the expression in ContextQuery on the context that is passed in, resulting in a IQueryable{T} that is returned as an IEnumerable{T}
context | the data context that the query should be executed against |
Implements Highway.Data.Interfaces.IQuery< out T >.
|
inlineprotectedvirtual |
This method allows for the extension of Ordering and Grouping on the prebuild Query
|
inline |
This executes the expression against the passed in context to generate the SQL statement, but doesn't execute the IQueryableT against the data context
context | The data context that the query is evaluated and the SQL is generated against |
Implements Highway.Data.Interfaces.IQueryBase.
|
getsetprotected |
This holds the expression that will be used to create the IQueryable{T} when executed on the context