When saving a list to the database I have the following code:
Using Trans As TransactionManager = DataRepository.Provider.CreateTransaction()
Trans.BeginTransaction() ' begin a transaction
Try
Save(Trans, List) ' save the changed records
Trans.Commit() ' commit the transaction and accept changes
Catch ex As Exception
Trans.Rollback() ' rollback the transaction
ExceptionPolicy.HandleException
End Try
End Using
If there is a problem during the save and an exception is thrown I know that the records to the
database will be rolled back but how do I revert the list back
to it's original state since NetTiers has already done the AcceptChanges?