Aggiunta descrizione selezione file report
This commit is contained in:
@@ -144,6 +144,17 @@ builder.Services.AddDbContextFactory<DataLayerContext>(options =>
|
||||
.EnableDetailedErrors(false)
|
||||
.LogTo(_ => { }); // disabilita EF logging;
|
||||
});
|
||||
builder.Services.AddDbContextFactory<ReportContext>(options =>
|
||||
{
|
||||
var conn = builder.Configuration.GetConnectionString("Lux.All");
|
||||
options.UseMySql(conn, ServerVersion.AutoDetect(conn), mySqlOptions =>
|
||||
{
|
||||
mySqlOptions.EnableStringComparisonTranslations();
|
||||
})
|
||||
.EnableSensitiveDataLogging(false)
|
||||
.EnableDetailedErrors(false)
|
||||
.LogTo(_ => { }); // disabilita EF logging;
|
||||
});
|
||||
|
||||
// fix serializazzione senza loop
|
||||
builder.Services.AddControllers().AddJsonOptions(options =>
|
||||
|
||||
Reference in New Issue
Block a user