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 | Properties
Highway.Data.Repository Class Reference

A Entity Framework Specific repository implementation that uses Specification pattern to execute Queries in a controlled fashion. More...

Inheritance diagram for Highway.Data.Repository:
Highway.Data.Interfaces.IRepository

List of all members.

Public Member Functions

 Repository (IDataContext context)
 Creates a Repository that uses the context provided
Get< T > (IScalar< T > query)
 Executes a prebuilt IScalar{T} and returns a single instance of T
void Execute (ICommand command)
 Executes a prebuilt ICommand
IEnumerable< T > Find< T > (IQuery< T > query)
 Executes a prebuilt IQuery{T} and returns an IEnumerable{T}

Properties

IDataContext Context [get, set]
 Reference to the DataContext the repository is using
IEventManager EventManager [get, set]
 Reference to the EventManager the repository is using
- Properties inherited from Highway.Data.Interfaces.IRepository

Detailed Description

A Entity Framework Specific repository implementation that uses Specification pattern to execute Queries in a controlled fashion.


Constructor & Destructor Documentation

Highway.Data.Repository.Repository ( IDataContext  context)
inline

Creates a Repository that uses the context provided

Parameters:
contextThe data context that this repository uses

Member Function Documentation

void Highway.Data.Repository.Execute ( ICommand  command)
inline

Executes a prebuilt ICommand

Parameters:
commandThe prebuilt command object

Implements Highway.Data.Interfaces.IRepository.

IEnumerable<T> Highway.Data.Repository.Find< T > ( IQuery< T >  query)
inline

Executes a prebuilt IQuery{T} and returns an IEnumerable{T}

Template Parameters:
TThe Entity being queried
Parameters:
queryThe prebuilt Query Object
Returns:
The IEnumerable{T} returned from the query

Implements Highway.Data.Interfaces.IRepository.

Type Constraints
T :class 
T Highway.Data.Repository.Get< T > ( IScalar< T >  query)
inline

Executes a prebuilt IScalar{T} and returns a single instance of T

Template Parameters:
TThe Entity being queried
Parameters:
queryThe prebuilt Query Object
Returns:
The instance of T returned from the query

Implements Highway.Data.Interfaces.IRepository.


Property Documentation

IDataContext Highway.Data.Repository.Context
getset

Reference to the DataContext the repository is using

Implements Highway.Data.Interfaces.IRepository.

IEventManager Highway.Data.Repository.EventManager
getset

Reference to the EventManager the repository is using

Implements Highway.Data.Interfaces.IRepository.


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