The UnitOfWorkBase type exposes the following members.

Constructors

  NameDescription
UnitOfWorkBase

Methods

  NameDescription
Add
Registers the specified entity as a pending insert.
AttachOverloaded.
BeginTransactionOverloaded.
CalculateOverloaded.
CountOverloaded.
Detach
Detaches the specified Entity from the current unit of work.
DisposeOverloaded.
Execute
Executes a database stored procedure.
Finalize
Performs object finalization.
(Overrides Object..::.Finalize()()().)
FindOverloaded.
FindByIdOverloaded.
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
FindOneOverloaded.
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.
ProjectOverloaded.
RemoveOverloaded.
SaveChangesOverloaded.
SearchOverloaded.
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

  NameDescription
Context
The LightSpeedContext that spawned this IUnitOfWork.

Events

  NameDescription
Disposed
Signals that the component has been disposed.

See Also