Skip to content

Commit 564d429

Browse files
Fix data source path
1 parent b7fd8ee commit 564d429

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CS/AspNetCoreCustomItem/Startup.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ private void Configurator_ConfigureDataConnection(object sender, ConfigureDataCo
7777
if (e.DataSourceName == "Departments") {
7878
e.ConnectionParameters = new XmlFileConnectionParameters() { FileName = FileProvider.GetFileInfo("Data/Departments.xml").PhysicalPath };
7979
}
80+
if (e.DataSourceName == "Energy Statistics") {
81+
e.ConnectionParameters = new ExcelDataSourceConnectionParameters(FileProvider.GetFileInfo("Data/EnergyStatistics.xls").PhysicalPath);
82+
}
8083
}
8184

8285
private void Configurator_DataLoading(object sender, DataLoadingWebEventArgs e) {

0 commit comments

Comments
 (0)