Continuo fix gestione editing report DevExpress
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using DevExpress.Blazor.Reporting;
|
||||
using DevExpress.XtraReports.Web.Extensions;
|
||||
using Lux.Report.Data;
|
||||
using Lux.Report.Data.Repository;
|
||||
using Lux.Report.Data.Reports;
|
||||
using Lux.Report.Data.Services;
|
||||
using Lux.Report.Manager.Components;
|
||||
using Microsoft.AspNetCore.Localization;
|
||||
@@ -52,11 +55,20 @@ builder.Services.AddDbContextFactory<ReportContext>(options =>
|
||||
|
||||
//builder.Services.AddDatabaseDeveloperPageExceptionFilter();
|
||||
|
||||
// aggiungo servizi
|
||||
// aggiungo servizi "interni"
|
||||
builder.Services.AddSingleton<IFileService, FileService>();
|
||||
builder.Services.AddScoped<IReportRepository, ReportRepository>();
|
||||
builder.Services.AddScoped<IReportService, ReportService>();
|
||||
|
||||
// aggiunta servizi DevExpress
|
||||
builder.Services.AddDevExpressServerSideBlazorReportViewer();
|
||||
|
||||
builder.Services.AddMvc();
|
||||
builder.Services.AddDevExpressBlazorReporting();
|
||||
builder.WebHost.UseWebRoot("wwwroot");
|
||||
builder.WebHost.UseStaticWebAssets();
|
||||
builder.Services.AddScoped<ReportStorageWebExtension, CustomReportStorageWebExtension>();
|
||||
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
@@ -78,6 +90,8 @@ app.UseHttpsRedirection();
|
||||
app.UseStaticFiles();
|
||||
app.UseAntiforgery();
|
||||
|
||||
// componenti DevExpress report
|
||||
app.UseDevExpressBlazorReporting();
|
||||
|
||||
|
||||
// cultura IT...
|
||||
|
||||
Reference in New Issue
Block a user