-
Notifications
You must be signed in to change notification settings - Fork 1
/
Default.aspx.cs
21 lines (17 loc) · 931 Bytes
/
Default.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using DevExpress.DashboardCommon;
using DevExpress.DashboardWeb;
using DevExpress.DataAccess.Sql;
using System;
namespace WebFormsDashboard_CustomSchemaProvider {
public partial class Default : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
DashboardFileStorage dashboardFileStorage = new DashboardFileStorage("~/App_Data/Dashboards");
ASPxDashboard1.SetDashboardStorage(dashboardFileStorage);
ASPxDashboard1.SetConnectionStringsProvider(new DevExpress.DataAccess.Web.ConfigFileConnectionStringsProvider());
// This method assigns the database schema provider to the Web Dashboard.
// Uncomment one of the following lines depending on the provider.
ASPxDashboard1.SetDBSchemaProvider(new ManualDBSchemaProvider());
//ASPxDashboard1.SetDBSchemaProvider(new LimitDBSchemaProvider());
}
}
}