The IUnitOfWork type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Registers the specified entity as a pending insert.
| |
Attach | Overloaded. | |
BeginTransaction | Overloaded. | |
Calculate | Overloaded. | |
Count | Overloaded. | |
Detach |
Detaches the specified Entity from the current unit of work.
| |
Execute |
Executes a database stored procedure.
| |
Find | Overloaded. | |
FindById | Overloaded. | |
FindBySql<(Of <(TEntity>)>) |
Returns a strongly typed list of Entity objects that
represent the records returned by the specified database command.
| |
FindOne | Overloaded. | |
Import<(Of <(TEntity>)>) |
Imports the specified source object to the current unit of work which will
map its properties against the currently loaded version of an associated
entity, the type of which shall be TEntity.
| |
PrepareCommand |
Prepares a IDbCommand to run against the underlying database.
| |
Project | Overloaded. | |
Remove | Overloaded. | |
SaveChanges | Overloaded. | |
Search | Overloaded. | |
Update |
Updates entities by executing SQL directly against the database. NB. No entities are
materialized and therefore no callbacks run, cached entities are not updated in the second-level
cache or full-text search index etc.
|
Properties
Name | Description | |
---|---|---|
Context |
The LightSpeedContext that spawned this IUnitOfWork |
Events
Name | Description | |
---|---|---|
Disposed |
Signals that the component has been disposed.
|