Highway Framework  Release 1.0.1.0
The fastest and smoothest way to great architecture
 All Classes Namespaces Functions Variables Properties Events
Events
Highway.Data.Interfaces.IObservableDataContext Interface Reference

The interface used to surface events from a context that supports interceptors More...

Inheritance diagram for Highway.Data.Interfaces.IObservableDataContext:
Highway.Data.Interfaces.IDataContext Highway.Data.DataContext Highway.Data.ObjectDataContext

List of all members.

Events

EventHandler< PreSaveEventArgsPreSave
 The event fired just before the commit of the ORM
EventHandler< PostSaveEventArgsPostSave
 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
Add< T > (T item)
 Adds the provided instance of T to the data context
Remove< T > (T item)
 Removes the provided instance of T from the data context
Update< T > (T item)
 Updates the provided instance of T in the data context
Attach< T > (T item)
 Attaches the provided instance of T to the data context
Detach< T > (T item)
 Detaches the provided instance of T from the data context
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

Detailed Description

The interface used to surface events from a context that supports interceptors


Event Documentation

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.


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