Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public class QueryBuilderConfigurationBuilder

#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();

#Inheritance

Object
QueryBuilderConfigurationBuilder
See Also