App.Config 1.4 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  5. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  6. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  7. </configSections>
  8. <entityFramework>
  9. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  10. <parameters>
  11. <parameter value="mssqllocaldb" />
  12. </parameters>
  13. </defaultConnectionFactory>
  14. <providers>
  15. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  16. </providers>
  17. </entityFramework>
  18. <connectionStrings>
  19. <add name="DB" connectionString="metadata=res://*/Object.csdl|res://*/Object.ssdl|res://*/Object.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=localhost;initial catalog=WebServiceDemo;user id=sa;password=xuechun;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  20. </connectionStrings>
  21. </configuration>