use*_*219 10 .net c# transactionscope
我正在经历这种奇怪的行为,其中事务仅在using退出而不是在调用时提交scope.Complete();
using (TransactionScope scope = new TransactionScope(TransactionScopeOption.RequiresNew))
{
scope.Complete();
// data still doesn't show in db
}
// now shows in db
Run Code Online (Sandbox Code Playgroud)
如何在退出using语句之前提交事务?