DashboardConfigurator.SetDBSchemaProvider(IDBSchemaProviderEx) Method
Specifies a database schema provider for the Web Dashboard.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v24.1.Web.dll
NuGet Package: DevExpress.Web.Dashboard.Common
Declaration
Parameters
Name | Type | Description |
---|---|---|
provider | IDBSchemaProviderEx | A database schema provider that implements the IDBSchemaProviderEx interface. |
Remarks
Tip
For information on how to use the DashboardConfigurator‘s API, see the following topic: Server-Side API Overview.
To use a custom database schema provider for SQL data sources, implement the IDBSchemaProviderEx interface. Pass an instance of the created class to the DashboardConfigurator.SetDBSchemaProvider
method to assign the provider to the Web Dashboard:
// The configurator variable is an instance of the DashboardConfiguartor class.
configurator.SetDBSchemaProvider(new CustomDBSchemaProvider());
For more information on custom database schema providers, refer to the following article: Implement a Custom Database Schema in ASP.NET MVC and ASP.NET Core.
The following examples show how to implement a custom database schema provider:
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references 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.