Highway Framework
Release 1.0.1.0
The fastest and smoothest way to great architecture
|
The interface used to surface events from a context that supports interceptors More...
Events | |
EventHandler< PreSaveEventArgs > | PreSave |
The event fired just before the commit of the ORM | |
EventHandler< PostSaveEventArgs > | PostSave |
The event fired just after the commit of the ORM |
Additional Inherited Members | |
Public Member Functions inherited from Highway.Data.Interfaces.IDataContext | |
IQueryable< T > | AsQueryable< T > () |
This gives a mockable wrapper around normal Set method that allows for testablity | |
T | Add< T > (T item) |
Adds the provided instance of T to the data context | |
T | Remove< T > (T item) |
Removes the provided instance of T from the data context | |
T | Update< T > (T item) |
Updates the provided instance of T in the data context | |
T | Attach< T > (T item) |
Attaches the provided instance of T to the data context | |
T | Detach< T > (T item) |
Detaches the provided instance of T from the data context | |
T | Reload< T > (T item) |
Reloads the provided instance of T from the database | |
int | Commit () |
Commits all currently tracked entity changes | |
IEnumerable< T > | ExecuteSqlQuery< T > (string sql, params DbParameter[] dbParams) |
Executes a SQL command and tries to map the returned datasets into an IEnumerable{T} The results should have the same column names as the Entity Type has properties | |
int | ExecuteSqlCommand (string sql, params DbParameter[] dbParams) |
Executes a SQL command and returns the standard int return from the query | |
int | ExecuteFunction (string procedureName, params ObjectParameter[] dbParams) |
| |
Properties inherited from Highway.Data.Interfaces.IDataContext | |
IEventManager | EventManager [get, set] |
The reference to EventManager that allows for ordered event handling and registration |
The interface used to surface events from a context that supports interceptors
EventHandler<PostSaveEventArgs> Highway.Data.Interfaces.IObservableDataContext.PostSave |
The event fired just after the commit of the ORM
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.
EventHandler<PreSaveEventArgs> Highway.Data.Interfaces.IObservableDataContext.PreSave |
The event fired just before the commit of the ORM
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.