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.AsyncRepository Class Reference

A Repository that implements a default Task based Async Pattern More...

Inheritance diagram for Highway.Data.AsyncRepository:
Highway.Data.Interfaces.IAsyncRepository

List of all members.

Public Member Functions

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

Properties

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

Detailed Description

A Repository that implements a default Task based Async Pattern


Constructor & Destructor Documentation

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

Creates an Async Repository that uses Async and Await

Parameters:
contextThe data context being leveraged

Member Function Documentation

Task Highway.Data.AsyncRepository.Execute ( ICommand  command)
inline

Executes a prebuilt ICommand

Parameters:
commandThe prebuilt command object

Implements Highway.Data.Interfaces.IAsyncRepository.

Task<IEnumerable<T> > Highway.Data.AsyncRepository.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.IAsyncRepository.

Type Constraints
T :class 
Task<T> Highway.Data.AsyncRepository.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.IAsyncRepository.


Property Documentation

IDataContext Highway.Data.AsyncRepository.Context
getset

Reference to the Context the repository is using

Implements Highway.Data.Interfaces.IAsyncRepository.

IEventManager Highway.Data.AsyncRepository.EventManager
getset

Reference to the EventManager the repository is using

Implements Highway.Data.Interfaces.IAsyncRepository.


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