The requested page is not available for the requested platform. You are viewing the content for Default platform.

QueryBuilderConfigurationBuilder Class

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

Namespace: DevExpress.AspNetCore.Reporting

Assembly: DevExpress.AspNetCore.Reporting.v19.1.dll

Declaration

public class QueryBuilderConfigurationBuilder
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, 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