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.Interfaces.IQuery< out T > Interface Template Reference

An Interface for Queries that return collections More...

Inheritance diagram for Highway.Data.Interfaces.IQuery< out T >:
Highway.Data.Interfaces.IQueryBase Highway.Data.QueryObjects.Query< T > Highway.Data.EntityFramework.StructureMap.Example.Queries.LastNameQuery

List of all members.

Public Member Functions

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}
- Public Member Functions inherited from Highway.Data.Interfaces.IQueryBase
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

Detailed Description

An Interface for Queries that return collections

Template Parameters:
TThe Type being requested

Member Function Documentation

template<out T>
IEnumerable<T> Highway.Data.Interfaces.IQuery< out 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}

Parameters:
contextthe data context that the query should be executed against
Returns:
The collection of T that the query materialized if any

Implemented in Highway.Data.QueryObjects.Query< T >.


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