C#對System.Transactions事務處理方法

using (TransactionScope Tran = new TransactionScope())

 {

//

Tran.Complete();

 }
特別注意:try{}catch{}要加在Tran.Complete()外 否則不起作用


try
{

 }
 catch (Exception ex)
 {

}


原文鏈接:C#對System.Transactions事務處理方法