A Repository that implements a default Task based Async Pattern
More...
List of all members.
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:
-
context | The data context being leveraged |
Member Function Documentation
Task Highway.Data.AsyncRepository.Execute |
( |
ICommand |
command | ) |
|
|
inline |
Task<IEnumerable<T> > Highway.Data.AsyncRepository.Find< T > |
( |
IQuery< T > |
query | ) |
|
|
inline |
Executes a prebuilt IQuery{T} and returns an IEnumerable{T}
- Template Parameters:
-
T | The Entity being queried |
- Parameters:
-
query | The prebuilt Query Object |
- Returns:
- The IEnumerable{T} returned from the query
Implements Highway.Data.Interfaces.IAsyncRepository.
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:
-
T | The Entity being queried |
- Parameters:
-
query | The prebuilt Query Object |
- Returns:
- The instance of T returned from the query
Implements Highway.Data.Interfaces.IAsyncRepository.
Property Documentation
The documentation for this class was generated from the following file:
- Highway.Data.EntityFramework/Repositories/AsyncRepository.cs