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.v18.1.dll

Declaration

public ReportingConfigurationBuilder ConfigureQueryBuilder(
    Action<QueryBuilderConfigurationBuilder> configure
)
Public Function ConfigureQueryBuilder(
    configure As Action(Of QueryBuilderConfigurationBuilder)
) As ReportingConfigurationBuilder

Parameters

Type Name Description
System.Action<QueryBuilderConfigurationBuilder> configure

An <xref:System.Action`1> 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.

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>();
            });
        });        
    }
//...    
}