Skip to main content

ASPxDashboard.SetDBSchemaProvider(IDBSchemaProviderEx) Method

Specifies a database schema provider for the Web Dashboard.

Namespace: DevExpress.DashboardWeb

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

NuGet Package: DevExpress.Web.Dashboard

Declaration

public void SetDBSchemaProvider(
    IDBSchemaProviderEx provider
)

Parameters

Name Type Description
provider IDBSchemaProviderEx

A database schema provider that implements the IDBSchemaProviderEx interface.

Remarks

To use a custom database schema provider for SQL data sources, implement the IDBSchemaProviderEx interface. Pass an instance of the created class to the ASPxDashboard.SetDBSchemaProvider method to assign the provider to the Web Dashboard:

// The ASPxDashboard1 variable is an instance of the ASPxDashboard class.
ASPxDashboard1.SetDBSchemaProvider(new CustomDBSchemaProvider());

For more information on custom database schema providers, refer to the following article: Implement a Custom Database Schema in ASP.NET Web Forms.

The following example shows how to implement a custom database schema provider:

View Example

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetDBSchemaProvider(IDBSchemaProviderEx) 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.

See Also