diff --git a/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRepository.cs b/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRepository.cs
index 98639826..bcef13f3 100644
--- a/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRepository.cs
@@ -46,7 +46,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
if (currRec == null)
{
- tx.Rollback();
+ await tx.RollbackAsync();
return false;
}
@@ -99,12 +99,12 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
// 5. Salvo tutto in transazione
bool done = await dbCtx.SaveChangesAsync() > 0;
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -170,12 +170,12 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
dbCtx.Entry(row).State = EntityState.Modified;
bool done = await dbCtx.SaveChangesAsync() > 0;
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRowRepository.cs b/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRowRepository.cs
index dcff5ff7..b58c1617 100644
--- a/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRowRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Catalog/TemplateRowRepository.cs
@@ -40,7 +40,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
if (currRec == null)
{
- tx.Rollback();
+ await tx.RollbackAsync();
return false;
}
@@ -89,12 +89,12 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
dbCtx.DbSetTemplateRow.Add(newRec);
bool done = await dbCtx.SaveChangesAsync() > 0;
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -143,12 +143,12 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
dbCtx.Entry(row).State = EntityState.Modified;
bool done = await dbCtx.SaveChangesAsync() > 0;
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Items/ItemRepository.cs b/EgwCoreLib.Lux.Data/Repository/Items/ItemRepository.cs
index 50e498e6..4197575a 100644
--- a/EgwCoreLib.Lux.Data/Repository/Items/ItemRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Items/ItemRepository.cs
@@ -266,11 +266,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Items
}
}
}
- return await dbCtx.SaveChangesAsync() > 0;
+ bool done = await dbCtx.SaveChangesAsync() > 0;
+ await tx.CommitAsync();
+ return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Job/JobStepRepository.cs b/EgwCoreLib.Lux.Data/Repository/Job/JobStepRepository.cs
index 4594e370..618e3603 100644
--- a/EgwCoreLib.Lux.Data/Repository/Job/JobStepRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Job/JobStepRepository.cs
@@ -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;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Job/JobTaskRepository.cs b/EgwCoreLib.Lux.Data/Repository/Job/JobTaskRepository.cs
index 989cc405..aec819c2 100644
--- a/EgwCoreLib.Lux.Data/Repository/Job/JobTaskRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Job/JobTaskRepository.cs
@@ -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;
}
}
@@ -125,13 +125,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;
}
}
@@ -177,13 +177,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;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Production/ProductionGroupRepository.cs b/EgwCoreLib.Lux.Data/Repository/Production/ProductionGroupRepository.cs
index 6bcf42bf..175cd57b 100644
--- a/EgwCoreLib.Lux.Data/Repository/Production/ProductionGroupRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Production/ProductionGroupRepository.cs
@@ -117,13 +117,14 @@ namespace EgwCoreLib.Lux.Data.Repository.Production
// salvo TUTTI i cambiamenti...
answ = await dbCtx.SaveChangesAsync() > 0;
+ await tx.CommitAsync();
}
}
return answ;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Production/ProductionItemRepository.cs b/EgwCoreLib.Lux.Data/Repository/Production/ProductionItemRepository.cs
index 46ec6de3..5e90c571 100644
--- a/EgwCoreLib.Lux.Data/Repository/Production/ProductionItemRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Production/ProductionItemRepository.cs
@@ -39,7 +39,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Production
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
return totUpd;
@@ -74,7 +74,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Production
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
return totUpd;
@@ -106,7 +106,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Production
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
return numItem;
diff --git a/EgwCoreLib.Lux.Data/Repository/Sales/OfferRepository.cs b/EgwCoreLib.Lux.Data/Repository/Sales/OfferRepository.cs
index 99c51145..ace18426 100644
--- a/EgwCoreLib.Lux.Data/Repository/Sales/OfferRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Sales/OfferRepository.cs
@@ -145,12 +145,12 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
// 5. Salvo tutto in transazione
await dbCtx.SaveChangesAsync();
- tx.Commit();
+ await tx.CommitAsync();
return true;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -230,13 +230,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Sales/OrderRepository.cs b/EgwCoreLib.Lux.Data/Repository/Sales/OrderRepository.cs
index a2c76d7b..b96aa5e0 100644
--- a/EgwCoreLib.Lux.Data/Repository/Sales/OrderRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Sales/OrderRepository.cs
@@ -251,13 +251,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Sales/OrderRowRepository.cs b/EgwCoreLib.Lux.Data/Repository/Sales/OrderRowRepository.cs
index 7e130ca3..16f4e832 100644
--- a/EgwCoreLib.Lux.Data/Repository/Sales/OrderRowRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Sales/OrderRowRepository.cs
@@ -61,13 +61,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -146,13 +146,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -335,13 +335,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -379,13 +379,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return numDone;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Stats/StatsAggrRepository.cs b/EgwCoreLib.Lux.Data/Repository/Stats/StatsAggrRepository.cs
index fb72381a..a744771f 100644
--- a/EgwCoreLib.Lux.Data/Repository/Stats/StatsAggrRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Stats/StatsAggrRepository.cs
@@ -90,7 +90,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Stats
answ = await dbCtx.SaveChangesAsync();
// commit transazione
- tx.Commit();
+ await tx.CommitAsync();
// libero memoria del changeTracker
dbCtx.ChangeTracker.Clear();
@@ -98,7 +98,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Stats
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Stats/StatsDetailRepository.cs b/EgwCoreLib.Lux.Data/Repository/Stats/StatsDetailRepository.cs
index cf5e3e5a..66177392 100644
--- a/EgwCoreLib.Lux.Data/Repository/Stats/StatsDetailRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Stats/StatsDetailRepository.cs
@@ -114,7 +114,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Stats
// salvo!
answ = await dbCtx.SaveChangesAsync();
// commit transazione
- tx.Commit();
+ await tx.CommitAsync();
// libero memoria del changeTracker
dbCtx.ChangeTracker.Clear();
@@ -122,7 +122,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Stats
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/EgwCoreLib.Lux.Data/Repository/Utils/GenValRepository.cs b/EgwCoreLib.Lux.Data/Repository/Utils/GenValRepository.cs
index 86ea0dbe..5c469981 100644
--- a/EgwCoreLib.Lux.Data/Repository/Utils/GenValRepository.cs
+++ b/EgwCoreLib.Lux.Data/Repository/Utils/GenValRepository.cs
@@ -58,13 +58,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
@@ -131,13 +131,13 @@ namespace EgwCoreLib.Lux.Data.Repository.Utils
bool done = await dbCtx.SaveChangesAsync() > 0;
if (done)
- tx.Commit();
+ await tx.CommitAsync();
return done;
}
catch
{
- tx.Rollback();
+ await tx.RollbackAsync();
throw;
}
}
diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj
index 7ba61125..41ed9054 100644
--- a/Lux.API/Lux.API.csproj
+++ b/Lux.API/Lux.API.csproj
@@ -4,7 +4,7 @@
net8.0
enable
enable
- 1.1.2603.2413
+ 1.1.2603.2415
diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj
index 28b4048b..f6fec38b 100644
--- a/Lux.UI/Lux.UI.csproj
+++ b/Lux.UI/Lux.UI.csproj
@@ -5,7 +5,7 @@
enable
enable
aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50
- 1.1.2603.2413
+ 1.1.2603.2415
diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index aa9aebf3..06f0e3ec 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
LUX - Web Windows MES
- Versione: 1.1.2603.2413
+ Versione: 1.1.2603.2415
Note di rilascio:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index 8bfe751d..39bd7c4e 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-1.1.2603.2413
+1.1.2603.2415
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index 62fd45ad..62fc8c64 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 1.1.2603.2413
+ 1.1.2603.2415
http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip
http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html
false