ConfigFileConnectionStringsProvider Class

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

Namespace: DevExpress.DataAccess.Web

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

public class ConfigFileConnectionStringsProvider :
    IDataSourceWizardConnectionStringsProvider
Public Class ConfigFileConnectionStringsProvider
    Implements 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.

Inheritance

Object
ConfigFileConnectionStringsProvider
See Also