prova intersect
This commit is contained in:
@@ -108,12 +108,16 @@ namespace SMGen.Data.Controllers
|
||||
{
|
||||
try
|
||||
{
|
||||
//localDbCtx
|
||||
// .DbSetAnagEventiTemp
|
||||
// .AddRange(newEvRecs);
|
||||
//await localDbCtx.SaveChangesAsync();
|
||||
//fatto = true;
|
||||
localDbCtx
|
||||
.Database
|
||||
.ExecuteSqlRaw("DELETE FROM AnagraficaEventi_Chk");
|
||||
localDbCtx
|
||||
.DbSetAnagEventiTemp
|
||||
.AddRange(newEvRecs);
|
||||
await localDbCtx.SaveChangesAsync();
|
||||
fatto = true;
|
||||
|
||||
#if false
|
||||
foreach (var item in newEvRecs)
|
||||
{
|
||||
var currRec = localDbCtx
|
||||
@@ -132,7 +136,8 @@ namespace SMGen.Data.Controllers
|
||||
.DbSetAnagEventiTemp
|
||||
.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
await localDbCtx.SaveChangesAsync();
|
||||
fatto = true;
|
||||
Log.Info($"Gli stati sono OK!");
|
||||
|
||||
Reference in New Issue
Block a user