Guest User

Untitled

a guest
Jan 23rd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  5. </configSections>
  6. <appSettings/>
  7. <system.web>
  8. <compilation debug="true" targetFramework="4.6.2"/>
  9. <httpRuntime/>
  10. <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
  11. </system.web>
  12. <system.serviceModel>
  13. <behaviors>
  14. <serviceBehaviors>
  15. <behavior name="ServiceBehavior">
  16. <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
  17. <serviceDebug includeExceptionDetailInFaults="true"/>
  18. </behavior>
  19. </serviceBehaviors>
  20. <endpointBehaviors>
  21. <behavior name="webHttpServiceBehavior">
  22. <webHttp/>
  23. </behavior>
  24. </endpointBehaviors>
  25. </behaviors>
  26. <services>
  27. <service name="MyService.Service" behaviorConfiguration="ServiceBehavior">
  28. <host>
  29. <baseAddresses>
  30. <add baseAddress="http://localhost/"/>
  31. </baseAddresses>
  32. </host>
  33. <endpoint binding="webHttpBinding" contract="MyService.IMyService" behaviorConfiguration="webHttpServiceBehavior"/>
  34. </service>
  35. </services>
  36. <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
  37. </system.serviceModel>
  38. <system.webServer>
  39. <modules runAllManagedModulesForAllRequests="true"/>
  40. <directoryBrowse enabled="true"/>
  41. </system.webServer>
  42. <entityFramework>
  43. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  44. <parameters>
  45. <parameter value="mssqllocaldb"/>
  46. </parameters>
  47. </defaultConnectionFactory>
  48. <providers>
  49. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  50. </providers>
  51. </entityFramework>
  52. <connectionStrings>
  53. <add name="MyEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=localhostmyDB;initial catalog=DB;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient"/>
  54. </connectionStrings>
  55. </configuration>
Add Comment
Please, Sign In to add comment