Completata review di tutti i progetti coi nuovi repository!
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user