QueryBuilderConfigurationBuilder Class
Exposes methods to register custom services for the Web Query Builder.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AspNetCore.Reporting.v23.1.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, use the ConfigureReportingServices(IServiceCollection, Action<ReportingConfigurationBuilder>) method within the Startup‘s ConfigureServices method.
The code below registers a custom IDataSourceWizardDBSchemaProviderExFactory service for the Web Query Builder.
using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
//...
public class Startup {
//...
public void ConfigureServices(IServiceCollection services) {
services.AddDevExpressControls();
services.AddMvc()
services.ConfigureReportingServices(configurator => {
configurator.ConfigureQueryBuilder(queryBuilderConfigurator => {
queryBuilderConfigurator.RegisterDataSourceWizardDBSchemaProviderExFactory<CustomFactory>();
});
});
}
//...
}