The UnitOfWorkBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | UnitOfWorkBase |
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.
|
![]() | Dispose | Overloaded. |
![]() | Execute |
Executes a database stored procedure.
|
![]() | Finalize |
Performs object finalization.
(Overrides Object..::.Finalize()()().) |
![]() | 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.
|
![]() | FindGroup |
Returns a set of Entity objects that match the provided query specification and places the results
in the provided EntityTuple and is grouped by entity type
|
![]() | FindOne | Overloaded. |
![]() | GetEnumerator |
Get an enumerator over the entities currently attached to this unit of work
|
![]() | 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.
|
![]() | OnDisposed |
Raises the Disposed event.
|
![]() ![]() | OnMockSavingEntity |
Performs housekeeping activity associated with saving an entity.
This method is provided for use by mock implementations of IUnitOfWork
and should be called by mock implementations prior to performing their
save activities. It should not be called in production code, as the LightSpeed
object mapper carries out the necessary housekeeping in that environment.
|
![]() | 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.
|