ASPxDashboard.SetConnectionStringsProvider(IDataSourceWizardConnectionStringsProvider) Method
Specifies a provider of data connections that can be used by the Web Dashboard.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v24.1.Web.WebForms.dll
NuGet Package: DevExpress.Web.Dashboard
Declaration
public void SetConnectionStringsProvider(
IDataSourceWizardConnectionStringsProvider provider
)
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SetConnectionStringsProvider(IDataSourceWizardConnectionStringsProvider) method.
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.