QueryBuilderConfigurationBuilder Class

Exposes methods to register custom services for the Web Query Builder.

Namespace: DevExpress.AspNetCore.Reporting

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

Declaration

public class QueryBuilderConfigurationBuilder :
    Object
Public Class QueryBuilderConfigurationBuilder
    Inherits Object

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

Inheritance

Object
QueryBuilderConfigurationBuilder

See Also