Back to Devexpress

ReportDesignerConfigurationBuilder.RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider() Method

xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-reportdesignerconfigurationbuilder.md

latest3.9 KB
Original Source

ReportDesignerConfigurationBuilder.RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider() Method

Registers the built-in MongoDB connection strings provider. This enables the Web Report Designer to retrieve MongoDB connection strings from the application configuration file.

Namespace : DevExpress.AspNetCore.Reporting

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

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public ReportDesignerConfigurationBuilder RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider()
vb
Public Function RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider As ReportDesignerConfigurationBuilder

Returns

TypeDescription
ReportDesignerConfigurationBuilder

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

|

Remarks

The Data Source Wizard and Report Wizard uses a connection strings provider to obtain data connections. Once a provider is registered, users can create new data sources based on registered MongoDB connection strings.

To allow users to create MongoDB data sources in ASP.NET Core applications, do the following:

  1. Install the MongoDB.Driver NuGet package.
  2. Add MongoDB connection strings (for example, mongodb://... or mongodb+srv://...) to the application’s configuration file (appsettings.json).
  3. Call the RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider method in the ConfigureReportDesigner() builder to register the default MongoDB connection strings provider:

You can also implement a custom connection string provider for MongoDB. For more information, refer to the following section in the Register MongoDB Data Connections topic: Implement a Custom Connection String Provider.

See Also

Register MongoDB Data Connections (ASP.NET Core)

ReportDesignerConfigurationBuilder Class

ReportDesignerConfigurationBuilder Members

DevExpress.AspNetCore.Reporting Namespace