Si usted tiene somehting así:transacciones anidadas con TransactionScope
IBinaryAssetStructureRepository rep = new BinaryAssetStructureRepository();
var userDto = new UserDto { id = 3345 };
var dto = new BinaryAssetBranchNodeDto("name", userDto, userDto);
using (var scope1 = new TransactionScope())
{
using(var scope2 = new TransactionScope())
{
//Persist to database
rep.CreateRoot(dto, 1, false);
scope2.Complete();
}
scope1.Dispose();
}
dto = rep.GetByKey(dto.id, -1, false);
¿El Scope2 TransactionScope interno también pueden deshacer?
Este enlace está roto. – adamjford
Usted dice scope.Dispose es redundante, pero lo más importante scope1.dispose deshace la transacción. – Mcanic