7.4.4 Creating the Entity Framework Context; Listing 7-13. Adding a Database Connection in the Web.config File

chap07
Jason Zhu 2021-09-08 11:40:04 +10:00
parent cacc3e1580
commit 997043a3db
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@
https://go.microsoft.com/fwlink/?LinkId=301880
-->
<configuration>
<connectionStrings>
<add name="EFDbContext" connectionString="Data Source=XLW-5CD034CWRC;
Initial Category=SportsStore;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />