QueryBuilderConfigurationBuilder Class
Exposes methods to register custom services for the Web Query Builder.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
Remarks
You can register custom and/or predefined services to provide specific functionality to the Web Query Builder. For this purpose, use the methods exposed by the QueryBuilderConfigurationBuilder class. To access a QueryBuilderConfigurationBuilder object, call the ConfigureReportingServices(IServiceCollection, Action<ReportingConfigurationBuilder>) method at the application startup.
The code below registers a custom IDataSourceWizardDBSchemaProviderExFactory service for the Web Query Builder in the application startup file.
using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDevExpressControls();
builder.Services.AddMvc()
builder.Services.ConfigureReportingServices(configurator => {
configurator.ConfigureQueryBuilder(queryBuilderConfigurator => {
queryBuilderConfigurator.RegisterDataSourceWizardDBSchemaProviderExFactory<CustomFactory>();
});
});
var app = builder.Build();