Add Reports V2 Module to an Existing XAF Application
Tip
When you create a new application with the DevExpress Template Kit, select the Reports checkbox in the Additional Modules section. The Template Kit will add all necessary code to your application.
To add the Reports V2 module to an existing XAF application, install the appropriate NuGet package and register the module as described in the following help topic: Register a Built-in XAF Module.
Navigate to the Startup.cs file(s) and specify the ReportDataType property value.
Files: SolutionName.Blazor.Server\Startup.cs, SolutionName.Win\Startup.cs, SolutionName.MiddleTier\Startup.cs, SolutionName.WebApi\Startup.cs.
If your application is based on the Entity Framework Core, navigate to the SolutionName.Module\BusinessObjects\SolutionDbContextName.cs file and include the ReportDataV2 class in the data model:
using DevExpress.Persistent.BaseImpl.EF; // ... public class SolutionEFCoreDbContextName : DbContext { public DbSet<ReportDataV2> ReportData { get; set; } // ... }