Skip to main content
A newer version of this page is available. .

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.v20.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

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