DevExpress-Examples / web-forms-dashboard-custom-database-schema-for-sql-data-sources

This example demonstrates how to customize a database schema for an SQL data source.

Repository from Github https://github.comDevExpress-Examples/web-forms-dashboard-custom-database-schema-for-sql-data-sourcesRepository from Github https://github.comDevExpress-Examples/web-forms-dashboard-custom-database-schema-for-sql-data-sources

Dashboard for Web Forms - How to customize a database schema for SQL data sources

This example shows how to create a custom database schema for the dashboard. The example contains two implementation of the IDBSchemaProviderEx interface, LimitDBSchemaProvider and ManualDBSchemaProvider. Call the ASPxDashboard.SetDBSchemaProvider method to assign the database schema to the Web Dashboard.

To see the result, add a new query or edit the existing query.

The LimitDBSchemaProvider class

File: LimitDBSchemaProvider.cs (VB: LimitDBSchemaProvider.vb)

This provider displays only the following database entities:

  • Tables which names start with the letter C
  • Views which names start with Sales
  • Stored procedures with zero arguments

The ManualDBSchemaProvider class

File: ManualDBSchemaProvider.cs (VB: LimitDBSchemaProvider.vb)

This provider loads two tables (Categories and Products) for the NWindConnectionString connection. Both tables contain only two columns and the tables are linked by the CategoryID field.

This technique improves the Data Source Wizard performance when loading the database schema to the dashboard.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to customize a database schema for an SQL data source.

License:Other


Languages

Language:Visual Basic .NET 48.0%Language:C# 45.4%Language:ASP.NET 6.7%