Steps
- Add reference to System.Transactions
2. Include namespace -->using System.Transactions;
3. Use transaction scope as shown below
using (System.Transactions.TransactionScope scope = new System.Transactions.TransactionScope())
{
//Insert
//Update
scope.Complete();
}
No comments:
Post a Comment