The IUnitOfWork type exposes the following members.

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.
Execute
Executes a database stored procedure.
FindOverloaded.
FindByIdOverloaded.
FindBySql<(Of <(TEntity>)>)
Returns a strongly typed list of Entity objects that represent the records returned by the specified database command.
FindOneOverloaded.
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.
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