|
1 |
| -<!-- default badges list --> |
2 |
| - |
3 |
| -[](https://supportcenter.devexpress.com/ticket/details/T1109764) |
4 |
| -[](https://docs.devexpress.com/GeneralInformation/403183) |
5 |
| -[](#does-this-example-address-your-development-requirementsobjectives) |
6 |
| -<!-- default badges end --> |
7 |
| -# BI Dashboard for ASP.NET Core - How to customize a database schema for SQL data sources |
8 |
| - |
9 |
| -This example shows how to create a custom database schema for the dashboard. The example contains two implementation of the [IDBSchemaProviderEx](https://docs.devexpress.com/CoreLibraries/DevExpress.DataAccess.Sql.IDBSchemaProviderEx) interface, `LimitDBSchemaProvider` and `ManualDBSchemaProvider`. Call the [DashboardConfigurator.SetDBSchemaProvider](https://docs.devexpress.com/Dashboard/DevExpress.DashboardWeb.DashboardConfigurator.SetDBSchemaProvider(DevExpress.DataAccess.Sql.IDBSchemaProviderEx)) method to assign the database schema to the Web Dashboard. |
10 |
| - |
11 |
| -To see the result, add a new query or edit the existing query. |
12 |
| - |
13 |
| -### The LimitDBSchemaProvider class |
14 |
| - |
15 |
| -File: [LimitDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/LimitDBSchemaProvider.cs) |
16 |
| - |
17 |
| -This provider displays only the following database entities: |
18 |
| - |
19 |
| -- Tables which names start with the letter *C* |
20 |
| -- Views which names start with *Sales* |
21 |
| -- Stored procedures with zero arguments |
22 |
| - |
23 |
| - |
24 |
| - |
25 |
| -### The ManualDBSchemaProvider class |
26 |
| - |
27 |
| -File: [ManualDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/ManualDBSchemaProvider.cs) |
28 |
| - |
29 |
| -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. |
30 |
| - |
31 |
| - |
32 |
| - |
33 |
| -This technique improves the [Data Source Wizard](https://docs.devexpress.com/Dashboard/117680/) performance when loading the database schema. |
34 |
| - |
35 |
| -## Files to Review |
36 |
| - |
37 |
| -* [LimitDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/LimitDBSchemaProvider.cs) |
38 |
| -* [ManualDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/ManualDBSchemaProvider.cs) |
39 |
| -* [DashboardUtils.cs](/CS/WebDashboardAspNetCore/Code/DashboardUtils.cs#L19) |
40 |
| - |
41 |
| -## Documentation |
42 |
| - |
43 |
| -* [Implement a Custom Database Schema](https://docs.devexpress.com/Dashboard/404044/web-dashboard/dashboard-backend/implement-a-custom-database-schema?p=netframework) |
44 |
| - |
45 |
| -## More Examples |
46 |
| - |
47 |
| -* [Dashboard for MVC - How to customize a data store schema for SQL data sources](https://github.com/DevExpress-Examples/aspnet-mvc-dashboard-how-to-customize-a-data-store-schema-for-sql-data-sources-t584271) |
48 |
| -* [Dashboard for ASP.NET Core - How to implement multi-tenant Dashboard architecture](https://github.com/DevExpress-Examples/DashboardUserBasedAspNetCore#data-source-schema) |
49 |
| -<!-- feedback --> |
50 |
| -## Does this example address your development requirements/objectives? |
51 |
| - |
52 |
| -[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-core-dashboard-custom-database-schema-for-sql-data-sources&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-core-dashboard-custom-database-schema-for-sql-data-sources&~~~was_helpful=no) |
53 |
| - |
54 |
| -(you will be redirected to DevExpress.com to submit your response) |
55 |
| -<!-- feedback end --> |
| 1 | +<!-- default badges list --> |
| 2 | + |
| 3 | +[](https://supportcenter.devexpress.com/ticket/details/T1109764) |
| 4 | +[](https://docs.devexpress.com/GeneralInformation/403183) |
| 5 | +[](#does-this-example-address-your-development-requirementsobjectives) |
| 6 | +<!-- default badges end --> |
| 7 | +# BI Dashboard for ASP.NET Core - How to customize a database schema for SQL data sources |
| 8 | + |
| 9 | +This example shows how to create a custom database schema for the dashboard. The example contains two implementation of the [IDBSchemaProviderEx](https://docs.devexpress.com/CoreLibraries/DevExpress.DataAccess.Sql.IDBSchemaProviderEx) interface, `LimitDBSchemaProvider` and `ManualDBSchemaProvider`. Call the [DashboardConfigurator.SetDBSchemaProvider](https://docs.devexpress.com/Dashboard/DevExpress.DashboardWeb.DashboardConfigurator.SetDBSchemaProvider(DevExpress.DataAccess.Sql.IDBSchemaProviderEx)) method to assign the database schema to the Web Dashboard. |
| 10 | + |
| 11 | +To see the result, add a new query or edit the existing query. |
| 12 | + |
| 13 | +### The LimitDBSchemaProvider class |
| 14 | + |
| 15 | +File: [LimitDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/LimitDBSchemaProvider.cs) |
| 16 | + |
| 17 | +This provider displays only the following database entities: |
| 18 | + |
| 19 | +- Tables which names start with the letter *C* |
| 20 | +- Views which names start with *Sales* |
| 21 | +- Stored procedures with zero arguments |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +### The ManualDBSchemaProvider class |
| 26 | + |
| 27 | +File: [ManualDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/ManualDBSchemaProvider.cs) |
| 28 | + |
| 29 | +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. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +This technique improves the [Data Source Wizard](https://docs.devexpress.com/Dashboard/117680/) performance when loading the database schema. |
| 34 | + |
| 35 | +## Files to Review |
| 36 | + |
| 37 | +* [LimitDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/LimitDBSchemaProvider.cs) |
| 38 | +* [ManualDBSchemaProvider.cs](./CS/WebDashboardAspNetCore/ManualDBSchemaProvider.cs) |
| 39 | +* [DashboardUtils.cs](/CS/WebDashboardAspNetCore/Code/DashboardUtils.cs#L19) |
| 40 | + |
| 41 | +## Documentation |
| 42 | + |
| 43 | +* [Implement a Custom Database Schema](https://docs.devexpress.com/Dashboard/404044/web-dashboard/dashboard-backend/implement-a-custom-database-schema?p=netframework) |
| 44 | + |
| 45 | +## More Examples |
| 46 | + |
| 47 | +* [Dashboard for MVC - How to customize a data store schema for SQL data sources](https://github.com/DevExpress-Examples/aspnet-mvc-dashboard-how-to-customize-a-data-store-schema-for-sql-data-sources-t584271) |
| 48 | +* [Dashboard for ASP.NET Core - How to implement multi-tenant Dashboard architecture](https://github.com/DevExpress-Examples/DashboardUserBasedAspNetCore#data-source-schema) |
| 49 | +<!-- feedback --> |
| 50 | +## Does this example address your development requirements/objectives? |
| 51 | + |
| 52 | +[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-core-dashboard-custom-database-schema-for-sql-data-sources&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-core-dashboard-custom-database-schema-for-sql-data-sources&~~~was_helpful=no) |
| 53 | + |
| 54 | +(you will be redirected to DevExpress.com to submit your response) |
| 55 | +<!-- feedback end --> |
0 commit comments