Web.config 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. https://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  10. </configSections>
  11. <appSettings>
  12. <add key="LogPath" value="C:\VAppLogs\MyTrelloWeb" />
  13. </appSettings>
  14. <connectionStrings>
  15. <add name="default" connectionString="Initial Catalog=MyTrello;Data Source=my_trello_db_server;user id=root" />
  16. </connectionStrings>
  17. <system.web>
  18. <compilation debug="true" targetFramework="4.6.1" />
  19. <httpRuntime targetFramework="4.6.1" />
  20. <httpModules>
  21. <add name="ApiModule" type="MyTrelloWeb.App.ApiModule" />
  22. <add name="Swagger1UiModule" type="MyTrelloWeb.App.Swagger1UiModule" />
  23. <add name="Swagger2UiModule" type="MyTrelloWeb.App.Swagger2UiModule" />
  24. </httpModules>
  25. </system.web>
  26. <system.webServer>
  27. <validation validateIntegratedModeConfiguration="false" />
  28. <modules>
  29. <add name="ApiModule" type="MyTrelloWeb.App.ApiModule" />
  30. <add name="Swagger1UiModule" type="MyTrelloWeb.App.Swagger1UiModule" />
  31. <add name="Swagger2UiModule" type="MyTrelloWeb.App.Swagger2UiModule" />
  32. </modules>
  33. </system.webServer>
  34. <entityFramework>
  35. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  36. <parameters>
  37. <parameter value="mssqllocaldb" />
  38. </parameters>
  39. </defaultConnectionFactory>
  40. <providers>
  41. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  42. <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
  43. </provider>
  44. </providers>
  45. </entityFramework>
  46. <runtime>
  47. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  48. <dependentAssembly>
  49. <assemblyIdentity name="Unity.Container" publicKeyToken="489b6accfaf20ef0" culture="neutral" />
  50. <bindingRedirect oldVersion="0.0.0.0-5.10.3.0" newVersion="5.10.3.0" />
  51. </dependentAssembly>
  52. <dependentAssembly>
  53. <assemblyIdentity name="Unity.Abstractions" publicKeyToken="489b6accfaf20ef0" culture="neutral" />
  54. <bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" />
  55. </dependentAssembly>
  56. <dependentAssembly>
  57. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  58. <bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
  59. </dependentAssembly>
  60. <dependentAssembly>
  61. <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  62. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  63. </dependentAssembly>
  64. </assemblyBinding>
  65. </runtime>
  66. </configuration>