ASPxDashboard.SetConnectionStringsProvider(IDataSourceWizardConnectionStringsProvider) Method

Specifies a provider of data connections that can be used by the Web Dashboard.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v20.1.Web.WebForms.dll

Declaration

public void SetConnectionStringsProvider(
    IDataSourceWizardConnectionStringsProvider provider
)
Public Sub SetConnectionStringsProvider(
    provider As IDataSourceWizardConnectionStringsProvider
)

Parameters

Name Type Description
provider IDataSourceWizardConnectionStringsProvider

An object that implements the IDataSourceWizardConnectionStringsProvider interface and provides access to the predefined connections strings.

Remarks

Pass the ConfigFileConnectionStringsProvider instance as a method's parameter for a default connection string provider implementation to allow end users to create new data sources based on predefined connection strings.

using DevExpress.DashboardWeb;
using DevExpress.DataAccess.Web;
// ...
ASPxDashboard1.SetConnectionStringsProvider(new ConfigFileConnectionStringsProvider());

To learn how to implement the IDataSourceWizardConnectionStringsProvider interface, see DashboardConfigurator.SetConnectionStringsProvider.

See Also