Skip to content

Commit 021e3c9

Browse files
Replace DataSourceName with ConnectionName
1 parent 3ff40d8 commit 021e3c9

File tree

2 files changed

+1084
-744
lines changed

2 files changed

+1084
-744
lines changed

CS/AspNetCoreCustomItem/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void ConfigureServices(IServiceCollection services) {
6868
}
6969

7070
private void Configurator_ConfigureDataConnection(object sender, ConfigureDataConnectionWebEventArgs e) {
71-
if (e.DataSourceName == "Departments") {
71+
if (e.ConnectionName == "localhost_Connection") {
7272
e.ConnectionParameters = new XmlFileConnectionParameters() { FileName = FileProvider.GetFileInfo("Data/Departments.xml").PhysicalPath };
7373
}
7474
if (e.ConnectionName == "energyStatisticsDataConnection") {

0 commit comments

Comments
 (0)