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.IRepository Interface Reference

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

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

List of all members.

Public Member Functions

IEnumerable< T > Find< T > (IQuery< T > query)
 Executes a prebuilt IQuery{T} and returns an IEnumerable{T}
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

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

void Highway.Data.Interfaces.IRepository.Execute ( ICommand  command)

Executes a prebuilt ICommand

Parameters:
commandThe prebuilt command object

Implemented in Highway.Data.Repository.

IEnumerable<T> Highway.Data.Interfaces.IRepository.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.Repository.

Type Constraints
T :class 
T Highway.Data.Interfaces.IRepository.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.Repository.


Property Documentation

IDataContext Highway.Data.Interfaces.IRepository.Context
get

Reference to the Context the repository is using

Implemented in Highway.Data.Repository.

IEventManager Highway.Data.Interfaces.IRepository.EventManager
get

Reference to the EventManager the repository is using

Implemented in Highway.Data.Repository.


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