7.4.4 Creating the Entity Framework Context; Listing 7-13. Adding a Database Connection in the Web.config File
parent
cacc3e1580
commit
997043a3db
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue