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.Interfaces.IAsyncRepository Interface Reference

The interface used to interact with the ORM Specific Implementations More...

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

List of all members.

Public Member Functions

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]
 Reference to the Context the repository is using
IEventManager EventManager [get]
 Reference to the EventManager the repository is using

Detailed Description

The interface used to interact with the ORM Specific Implementations


Member Function Documentation

Task Highway.Data.Interfaces.IAsyncRepository.Execute ( ICommand  command)

Executes a prebuilt ICommand

Parameters:
commandThe prebuilt command object

Implemented in Highway.Data.AsyncRepository.

Task<IEnumerable<T> > Highway.Data.Interfaces.IAsyncRepository.Find< T > ( IQuery< T >  query)

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

Implemented in Highway.Data.AsyncRepository.

Type Constraints
T :class 
Task<T> Highway.Data.Interfaces.IAsyncRepository.Get< T > ( IScalar< T >  query)

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

Implemented in Highway.Data.AsyncRepository.


Property Documentation

IDataContext Highway.Data.Interfaces.IAsyncRepository.Context
get

Reference to the Context the repository is using

Implemented in Highway.Data.AsyncRepository.

IEventManager Highway.Data.Interfaces.IAsyncRepository.EventManager
get

Reference to the EventManager the repository is using

Implemented in Highway.Data.AsyncRepository.


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