Cocktail Help Reference
UnitOfWork Class Members
See Also  Properties  Methods  Events Send Feedback
Cocktail Assembly > Cocktail Namespace : UnitOfWork Class


Glossary Item Box

The following tables list the members exposed by UnitOfWork.

Protected Constructors

 NameDescription
Protected ConstructorUnitOfWork ConstructorCreates a new unit of work.  
Top

Protected Properties

 NameDescription
Protected PropertyEntityManagerReturns the EntityManager used by this unit of work.  
Top

Public Methods

 NameDescription
Public MethodClearResets the UnitOfWork to its initial state.  
Public MethodCommitAsyncCommits all pending changes to the underlying data source.  
Public MethodHasChangesReturns true if the unit of work contains pending changes.  
Public MethodHasEntityReturns true if the provided entity is attached to the current UnitOfWork's EntityManager.  
Public MethodRollbackRolls back all pending changes.  
Top

Public Events

 NameDescription
Public EventEntityChangedFired whenever an entity associated with the current unit of work has changed in any significant manner.  
Top

See Also

© 2013 All Rights Reserved.