Back to Devexpress

Save a Connection String

xtrareports-403039-report-designer-for-visual-studio-data-source-wizard-connect-to-a-mongodb-data-source-save-connection-string.md

latest987 B
Original Source

Save a Connection String

  • Nov 27, 2025

This wizard page allows you to save a connection string to the application’s configuration file. Check the Yes, save a connection as option and specify the name of the connection string to save it. Otherwise, click Next.

The string is saved to the project’s configuration file and you can use this string when you create a new MongoDB connection.

Note

For .NET projects, install Microsoft.Extensions.Configuration and Microsoft.Extensions.Configuration.Json to obtain a data connection string from appsettings.json when you select a predefined data connection in the Data Source Wizard.