Skip to content

This example shows how to create custom dashboard storage in an ASP.NET Core application and to store dashboards in a database.

License

Notifications You must be signed in to change notification settings

nimaofe/asp-net-core-dashboard-save-dashboards-to-database

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BI Dashboard for ASP.NET Core - How to load and save dashboards from/to a database

This example shows how to create custom dashboard storage in an ASP.NET Core application and to store dashboards in a database. To create custom dashboard storage, implement IDashboardStorage or IEditableDashboardStorage.

This example also contains an SQL file (SavedDashboards.sql). You can use it to recreate a database on your side. Do not forget to update the connection string in the appsettings.json file to make it valid in your environment.

The following API is used in the example:

  • LoadDashboard 

    Loads a dashboard with the specified ID in XDocument format from storage.

  • GetAvailableDashboardsInfo 

    Returns a list of IDs and Captions of dashboards available in the data storage.

  • SaveDashboard 

    Saves the specified dashboard with new settings to the dashboard storage.

  • AddDashboard

    Saves a dashboard definition and its caption to the data storage and returns the ID of the new saved dashboard.

Files to Review

Documentation

More Examples

About

This example shows how to create custom dashboard storage in an ASP.NET Core application and to store dashboards in a database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 69.2%
  • HTML 21.8%
  • TSQL 8.8%
  • JavaScript 0.2%