System.Transactions; 事务
做个备份:
using (TransactionScope Tran = new TransactionScope())
{
//
Tran.Complete();
}
{
//
Tran.Complete();
}
注意:
try
{
}
catch (Exception ex)
{
}
}
catch (Exception ex)
{
}
要加在Tran.Complete();外,否则不起作用,这个方法比较简单

浙公网安备 33010602011771号