Update gesitone async contesto di transazione su DB

This commit is contained in:
Samuele Locatelli
2026-03-24 16:01:34 +01:00
parent c80e6dbf48
commit 4b5c8b2252
18 changed files with 56 additions and 53 deletions
@@ -54,13 +54,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Job
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
tx.Commit();
await tx.CommitAsync();
return done;
}
catch
{
tx.Rollback();
await tx.RollbackAsync();
throw;
}
}
@@ -126,13 +126,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Job
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
tx.Commit();
await tx.CommitAsync();
return done;
}
catch
{
tx.Rollback();
await tx.RollbackAsync();
throw;
}
}