ReportDesignerConfigurationBuilder.RegisterDataSourceWizardConfigFileJsonConnectionStringsProvider() Method

Enables the Web Report Designer to use the JSON data source connections specified in the application configuration file.

Namespace: DevExpress.AspNetCore.Reporting

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

Declaration

public ReportDesignerConfigurationBuilder RegisterDataSourceWizardConfigFileJsonConnectionStringsProvider()

Returns

Type Description
ReportDesignerConfigurationBuilder

A ReportDesignerConfigurationBuilder that can be used to further configure the Report Designer services.

Remarks

The Data Source Wizard uses a connection strings provider to obtain available data connections. The following code sample shows how to register the connection strings provider on application startup:

using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
using DevExpress.DataAccess.Web;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace AspNetCoreDemos.Reporting
{
    public class Startup {
    // ...
        public void ConfigureServices(IServiceCollection services) {
        // ...
            services.ConfigureReportingServices(configurator => {
                // ...
                configurator.ConfigureReportDesigner(designerConfigurator => {
                    // ...
                    designerConfigurator.RegisterDataSourceWizardConfigFileConnectionStringsProvider();
                    // ...
                });
            });
            // ...
        }
    // ...
    }
}
See Also