questo codice mi dà l'errore: la transazione è stata interrotta. se rimuovo 1 transazione nidificata di quanto non gettaTransazione nidificata di pari livello 2 Scope dà: la transazione ha annullato
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 L'ho fatto apposta, non voglio che si impegni, e mi genera un errore – Omu