I have to perform 3 operations in a windows app as a Transaction. These are not SQL operation otherwise i’d have used TransactionScope. The first operation is to log some value in a db, 2nd is to move an e mail to a pst and 3rd one is to move email to another mailbox. If any if these operation fails,I want other operations to roll back to previous state. is there any way, this transaction could be achieved.
Share
You could roll your own ResourceManager and use System.Transactions to help you handle the transactions.
http://www.codeguru.com/csharp/.net/net_data/sortinganditerating/article.php/c10993__1/
Depending on the complexity though, and how often you’ll need it, it might be an overly complex solution.