Completata review di tutti i progetti coi nuovi repository!

This commit is contained in:
Samuele Locatelli
2026-06-04 08:12:05 +02:00
parent 217836099c
commit 8c6bf075fb
39 changed files with 148 additions and 66 deletions
+7
View File
@@ -177,6 +177,13 @@ builder.Services.AddDbContextFactory<MoonPro_FluxContext>(options =>
.EnableSensitiveDataLogging(false) // true solo in Sviluppo
.ConfigureWarnings(w => w.Ignore(CoreEventId.ManyServiceProvidersCreatedWarning)));
var connStrSta = builder.Configuration.GetConnectionString("MP.Stats")
?? throw new InvalidOperationException("ConnString 'MP.Stats' mancante.");
builder.Services.AddDbContextFactory<MoonPro_STATSContext>(options =>
options.UseSqlServer(connStrSta)
.EnableSensitiveDataLogging(false) // true solo in Sviluppo
.ConfigureWarnings(w => w.Ignore(CoreEventId.ManyServiceProvidersCreatedWarning)));
// Init centralizzato Repository/Servizi da MP.Data Services
builder.Services.AddSpecDataLayer();