62,269
社区成员
发帖
与我相关
我的任务
分享try
{
using(System.net.Transaction.TransactionScrop ts=new System.net.Transaction.TransactionScrop())
{
..类A.方法A();
..类B.方法C();
....
..类N.方法N();
ts.Complete();
}
}
catch(Exception)
{
throw(e);
} public string AddOrderInfo(Conn cn, string p_strXml)
{
try
{
using(TransactionScope scope=new TransactionScope ())
{
AddOrder(conn,p_strXml);
AddOrderSeg(conn,p_strXml);
AddCuster(conn,p_strXml);
}
}
catch
{
}
}