ce code me donne l'erreur: la transaction a avorté. si je retire 1 transaction imbriquée qu'elle ne jette pas2 transactionnel imbriqué transactionScope donne: la transaction a avorté
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 Je l'ai fait exprès, je ne veux pas le commettre, et cela me jette une erreur – Omu