以下代码输出2,也就是说没有回滚
int a = 0;
using (TransactionScope ts = new TransactionScope())
{
a = 2;
}
MessageBox .Show (a.ToString ());
那么是不是说事务默认只支持数据库操作,
int a = 0;
using (TransactionScope ts = new TransactionScope())
{
a = 2;
}
MessageBox .Show (a.ToString ());
那么是不是说事务默认只支持数据库操作,
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货