निरस्त कर दिया गया है यह कोड मुझे त्रुटि देता है: लेनदेन निरस्त कर दिया गया है। अगर मैं 1 नेस्टेड लेन-देन की तुलना में यह फेंक नहीं है2 भाई घोंसला लेनदेनस्कोप देता है: लेनदेन
using(var scope = new TransactionScope())
{
repo.Insert(new Foo {Fname = "aaaa"});
using(var s = new TransactionScope())
{
repo.Insert(new Foo { Fname = "aaaa" });
//if I remove this transaction it is not going to throw exception
using (var aaa = new TransactionScope())
{
repo.Insert(new Foo { Fname = "aaaa" });
}
using(var ssa = new TransactionScope())
{
repo.Insert(new Foo { Fname = "aaaa" });
}
}
}
@ user281180 मैंने इसे उद्देश्य पर किया, मैं इसे प्रतिबद्ध नहीं करना चाहता, और यह मुझे एक त्रुटि फेंकता है – Omu