Cocktail Help Reference
IUnitOfWork Interface Members
See Also  Methods  Events Send Feedback
Cocktail Assembly > Cocktail Namespace : IUnitOfWork Interface


Glossary Item Box

The following tables list the members exposed by IUnitOfWork.

Public Methods

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

Public Events

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

See Also

© 2012 All Rights Reserved.