Linq数据上下文是否自动登记在TransactionScope Transaction中?

时间:2015-03-16 21:54:47

标签: c# linq datacontext transactionscope

我的代码是这样的:

 using (Datacontext dc = new Datacontext(connString))
 {
     using (TransactionScope t = new TransactionScope())
     {
       //make my changes.
       //dc.submitchanges();
       // t.complete();
       // Is my datacontext automatically enlisted in the transaction scope??
     }
 }

我的datacontext是否自动登记在事务范围内?

0 个答案:

没有答案