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 | Protected Member Functions | Protected Attributes | Properties | Events
Highway.Data.QueryObjects.QueryBase Class Reference

The base query that allows for appending expressions, query extensions, and eventing More...

Inheritance diagram for Highway.Data.QueryObjects.QueryBase:
Highway.Data.Interfaces.IExtendableQuery Highway.Data.Interfaces.IObservableQuery Highway.Data.QueryObjects.Command Highway.Data.QueryObjects.Query< T > Highway.Data.QueryObjects.Scalar< T > Highway.Data.QueryObjects.Query-g< Person > Highway.Data.EntityFramework.StructureMap.Example.Queries.LastNameQuery

List of all members.

Public Member Functions

void AddMethodExpression (string methodName, Type[] generics, Expression[] parameters)
 Adds a method to the expression in the query object

Protected Member Functions

void CheckContextAndQuery (object query)
 Checks the context and the Query for null

Protected Attributes

List< Tuple< MethodInfo,
Expression[]> > 
ExpressionList = new List<Tuple<MethodInfo, Expression[]>>()
 Holds the expressions to be appended

Properties

IDataContext Context [get, set]
 The reference to the IDataContext that gives data connection

Events

EventHandler< PreQueryEventArgsPreQuery
 The event fired just before the query goes to the database
EventHandler< PostQueryEventArgsPostQuery
 The event fire just after the data is translated into objects but before the data is returned.
- Events inherited from Highway.Data.Interfaces.IObservableQuery

Detailed Description

The base query that allows for appending expressions, query extensions, and eventing


Member Function Documentation

void Highway.Data.QueryObjects.QueryBase.AddMethodExpression ( string  methodName,
Type[]  generics,
Expression[]  parameters 
)
inline

Adds a method to the expression in the query object

Parameters:
methodNameThe name of the method to be added i.e. GroupBy
genericsAny type parameters needed by the method to be added
parametersAny object parameters needed by the method to be added

Implements Highway.Data.Interfaces.IExtendableQuery.

void Highway.Data.QueryObjects.QueryBase.CheckContextAndQuery ( object  query)
inlineprotected

Checks the context and the Query for null

Parameters:
queryThe query to be executed

Member Data Documentation

List<Tuple<MethodInfo, Expression[]> > Highway.Data.QueryObjects.QueryBase.ExpressionList = new List<Tuple<MethodInfo, Expression[]>>()
protected

Holds the expressions to be appended


Property Documentation

IDataContext Highway.Data.QueryObjects.QueryBase.Context
getsetprotected

The reference to the IDataContext that gives data connection


Event Documentation

EventHandler<PostQueryEventArgs> Highway.Data.QueryObjects.QueryBase.PostQuery

The event fire just after the data is translated into objects but before the data is returned.

Implements Highway.Data.Interfaces.IObservableQuery.

EventHandler<PreQueryEventArgs> Highway.Data.QueryObjects.QueryBase.PreQuery

The event fired just before the query goes to the database

Implements Highway.Data.Interfaces.IObservableQuery.


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