Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8474c79

Browse files
update connection string name for Azure naming convention
1 parent 7d328c6 commit 8474c79

22 files changed

+43
-165
lines changed
0 Bytes
Binary file not shown.

‎Startup.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void ConfigureServices(IServiceCollection services)
3737

3838
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
3939

40-
services.AddDbContext<EmployeeContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DevConnection")));
40+
services.AddDbContext<EmployeeContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
4141
}
4242

4343
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

‎appsettings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
},
99
"AllowedHosts": "*",
1010
"ConnectionStrings": {
11-
"DevConnection": "Server=localhost;Database=EmployeeDB;User Id=sa;Password=Uw12hZxM;Trusted_Connection=False;MultipleActiveResultSets=True"
11+
"DefaultConnection": "Server=localhost;Database=EmployeeDB;User Id=sa;Password=Uw12hZxM;Trusted_Connection=False;MultipleActiveResultSets=True"
1212
}
1313
}
0 Bytes
Binary file not shown.
-1.22 KB
Binary file not shown.
0 Bytes
Binary file not shown.
-376 Bytes
Binary file not shown.

‎bin/Debug/netcoreapp3.1/appsettings.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
},
99
"AllowedHosts": "*",
1010
"ConnectionStrings": {
11-
"DevConnection": "Server=localhost;Database=EmployeeDB;User Id=sa;Password=Uw12hZxM;Trusted_Connection=False;MultipleActiveResultSets=True"
11+
"DefaultConnection": "Server=localhost;Database=EmployeeDB;User Id=sa;Password=Uw12hZxM;Trusted_Connection=False;MultipleActiveResultSets=True"
1212
}
1313
}
0 Bytes
Binary file not shown.
-1.22 KB
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /