Highway Framework
Release 1.0.1.0
The fastest and smoothest way to great architecture
|
The standard interface used to interact with an ORM specific implementation More...
Public Member Functions | |
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 | |
IEventManager | EventManager [get, set] |
The reference to EventManager that allows for ordered event handling and registration |
The standard interface used to interact with an ORM specific implementation
T Highway.Data.Interfaces.IDataContext.Add< T > | ( | T | item | ) |
Adds the provided instance of T to the data context
T | The Entity Type being added |
item | The T you want to add |
Implemented in Highway.Data.ObjectDataContext, and Highway.Data.DataContext.
T | : | class |
IQueryable<T> Highway.Data.Interfaces.IDataContext.AsQueryable< T > | ( | ) |
This gives a mockable wrapper around normal Set method that allows for testablity
T | The Entity being queried |
Implemented in Highway.Data.ObjectDataContext, and Highway.Data.DataContext.
T | : | class |
T Highway.Data.Interfaces.IDataContext.Attach< T > | ( | T | item | ) |
Attaches the provided instance of T to the data context
T | The Entity Type being attached |
item | The T you want to attach |
Implemented in Highway.Data.ObjectDataContext, and Highway.Data.DataContext.
T | : | class |
int Highway.Data.Interfaces.IDataContext.Commit | ( | ) |
Commits all currently tracked entity changes
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.
T Highway.Data.Interfaces.IDataContext.Detach< T > | ( | T | item | ) |
Detaches the provided instance of T from the data context
T | The Entity Type being detached |
item | The T you want to detach |
Implemented in Highway.Data.ObjectDataContext, and Highway.Data.DataContext.
T | : | class |
int Highway.Data.Interfaces.IDataContext.ExecuteFunction | ( | string | procedureName, |
params ObjectParameter[] | dbParams | ||
) |
int Highway.Data.Interfaces.IDataContext.ExecuteSqlCommand | ( | string | sql, |
params DbParameter[] | dbParams | ||
) |
Executes a SQL command and returns the standard int return from the query
sql | The Sql Statement |
dbParams | A List of Database Parameters for the Query |
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.
IEnumerable<T> Highway.Data.Interfaces.IDataContext.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
T | The Entity Type that the return should be mapped to |
sql | The Sql Statement |
dbParams | A List of Database Parameters for the Query |
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.
T Highway.Data.Interfaces.IDataContext.Reload< T > | ( | T | item | ) |
Reloads the provided instance of T from the database
T | The Entity Type being reloaded |
item | The T you want to reload |
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.
T | : | class |
T Highway.Data.Interfaces.IDataContext.Remove< T > | ( | T | item | ) |
Removes the provided instance of T from the data context
T | The Entity Type being removed |
item | The T you want to remove |
Implemented in Highway.Data.ObjectDataContext, and Highway.Data.DataContext.
T | : | class |
T Highway.Data.Interfaces.IDataContext.Update< T > | ( | T | item | ) |
Updates the provided instance of T in the data context
T | The Entity Type being updated |
item | The T you want to update |
Implemented in Highway.Data.ObjectDataContext, and Highway.Data.DataContext.
T | : | class |
|
getset |
The reference to EventManager that allows for ordered event handling and registration
Implemented in Highway.Data.DataContext, and Highway.Data.ObjectDataContext.