The TransactionStatus enumeration is used to denote the exact transaction status in the DataService's BeforeBeginTransaction, AfterBeginTransaction, BeforeCommitTransaction, AfterCommitTransaction,BeforeRollBackTransaction and AfterRollBackTransaction event handlers. All those events provide a TransactionOperationEventArgs class instance as event information, setting its Status property to appropriate TransactionStatus value. Thus the same method can handle all 6 abovementioned events (for example this is useful for logging purposes).


Value Description
AfterBegin AfterBeginTransaction event is raised
AfterCommit AfterCommitTransaction event is raised
AfterRollBack AfterRollBackTransaction event is raised
BeforeBegin BeforeBeginTransaction event is raised
BeforeCommit BeforeCommitTransaction event is raised
BeforeRollBack BeforeRollBackTransaction event is raised