xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-reportdesignerconfigurationbuilder.md
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
public ReportDesignerConfigurationBuilder RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider()
Public Function RegisterDataSourceWizardConfigFileMongoDBConnectionStringsProvider As ReportDesignerConfigurationBuilder
| Type | Description |
|---|---|
| ReportDesignerConfigurationBuilder |
A ReportDesignerConfigurationBuilder that can be used to further configure the Report Designer services.
|
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:
mongodb://... or mongodb+srv://...) to the application’s configuration file (appsettings.json).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