The UnitOfWork type exposes the following members.

Constructors

  NameDescription
UnitOfWork
Initializes a new instance of the UnitOfWork class.

Methods

  NameDescription
Add
Registers the specified entity as a pending insert.
(Overrides UnitOfWorkBase..::.Add(Entity).)
AttachOverloaded.
BeginTransactionOverloaded.
CalculateOverloaded.
CountOverloaded.
Detach
Detaches the specified Entity from the current unit of work.
(Overrides UnitOfWorkBase..::.Detach(Entity).)
DisposeOverloaded.
Execute
Executes a database stored procedure.
(Overrides UnitOfWorkBase..::.Execute(ProcedureQuery).)
Finalize
Performs object finalization.
(Inherited from UnitOfWorkBase.)
FindOverloaded.
FindByIdOverloaded.
FindBySql<(Of <(TEntity>)>)
Returns a strongly typed list of Entity objects that represent the records returned by the specified database command.
(Overrides UnitOfWorkBase..::.FindBySql<(Of <(TEntity>)>)(IDbCommand).)
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
(Overrides UnitOfWorkBase..::.FindGroup(Query, EntityTuple).)
FindOneOverloaded.
GetEnumerator
Get an enumerator over the entities currently attached to this unit of work
(Inherited from UnitOfWorkBase.)
ImportOverloaded.
OnDisposed
Raises the Disposed event.
(Inherited from UnitOfWorkBase.)
PrepareCommand
Prepares a IDbCommand to run against the underlying database.
(Overrides UnitOfWorkBase..::.PrepareCommand(IDbCommand).)
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.
(Overrides UnitOfWorkBase..::.Update(Query, Object).)

Properties

  NameDescription
ConnectionStrategy
Gets or sets the ConnectionStrategy used to manage database connections.
Context
The LightSpeedContext that spawned this IUnitOfWork.
(Inherited from UnitOfWorkBase.)

Events

  NameDescription
Disposed
Signals that the component has been disposed.
(Inherited from UnitOfWorkBase.)

See Also