Mindscape LightSpeed - User Reference & API Documentation
IUnitOfWork Interface
API ReferenceMindscape.LightSpeedIUnitOfWork
Defines the contract for a Unit of Work. A Unit of Work maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems.
Declaration Syntax
C#Visual Basic
public interface IUnitOfWork : IDisposable
Public Interface IUnitOfWork _
	Implements IDisposable
Members
All MembersMethodsEvents



IconMemberDescription
Add(Entity)
Registers the specified entity as a pending insert.

Attach(Entity)
Attaches the specified Entity to the current unit of work.

BeginTransaction(IsolationLevel)
Begins a transaction.

Count(Query)
Returns the number of entities in the repository that satisfy the provided query specification.

Disposed
Signals that the component has been disposed.

Find<(Of <(TEntity>)>)(Query)
Returns a strongly typed list of Entity objects that match the provided Query specification.

Find(Query)
Returns a list of Entity objects that match the provided Query specification.

Find<(Of <(TList>)>)(Query, TList)
Returns a list of Entity objects that match the provided Query specification. Places the results into the provided collection.

FindOne<(Of <(TEntity>)>)(Query)
Finds a single Entity that matches the provided Query specification.

FindOne(Query)
Finds a single Entity that matches the provided Query specification.

PrepareCommand(IDbCommand)
Prepares a IDbCommand to run against the underlying database.

Project(Query)
Returns an IDataReader containing the results of the specified projection query. A projection query returns only a subset of fields of an entity. At lease one field name must have been added to the Projection collection.

Remove(Entity)
Registers the specified entity as a pending delete.

SaveChanges(Boolean)
Flushes pending changes to the database.

Assembly: Mindscape.LightSpeed (Module: Mindscape.LightSpeed) Version: 1.2.1393.0 (1.2.1393.0)