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

ReportingConfigurationBuilder.ConfigureQueryBuilder(Action<QueryBuilderConfigurationBuilder>) Method

Provides access to the QueryBuilderConfigurationBuilder object that exposes methods for registering custom or predefined services extending the Web Query Builder functionality.

Namespace: DevExpress.AspNetCore.Reporting

Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

#Declaration

public ReportingConfigurationBuilder ConfigureQueryBuilder(
    Action<QueryBuilderConfigurationBuilder> configure
)

#Parameters

Name Type Description
configure Action<QueryBuilderConfigurationBuilder>

An Action<T> delegate method that allows you to configure Web Query Builder custom services using the methods of the QueryBuilderConfigurationBuilder object, which is passed as the delegate parameter.

#Returns

Type Description
ReportingConfigurationBuilder

A ReportingConfigurationBuilder that can be used to further configure the reporting services.

#Remarks

The code below registers a custom IDataSourceWizardDBSchemaProviderExFactory service for the Web Query Builder at the application startup.

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();
See Also