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

ConfigFileConnectionStringsProvider Class

Provide access to the ConnectionStringsSection data for the current application’s configuration.

Namespace: DevExpress.DataAccess.Web

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

public class ConfigFileConnectionStringsProvider :
    IDataSourceWizardConnectionStringsProvider

Remarks

The Web Dashboard control exposes all connection strings from the Web.config / appsettings.json files by default. If you store connection strings in Web.config / appsettings.json, the Web Dashboard control can pass all connection string names from these files to the client side. Pass the ConfigFileConnectionStringsProvider instance to the Web Dashboard’s DashboardConfigurator.SetConnectionStringsProvider / ASPxDashboard.SetConnectionStringsProvider methods to allow creating new data sources based on connection strings from the Web.config / appsettings.json file.

To learn more about security considerations in the Web Dashboard, see Security Considerations.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ConfigFileConnectionStringsProvider class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
ConfigFileConnectionStringsProvider
See Also