App.config 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="common">
  5. <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
  6. </sectionGroup>
  7. <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
  8. </configSections>
  9. <startup>
  10. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
  11. </startup>
  12. <connectionStrings>
  13. <add name="OnlineLogDBContext" connectionString="data source=172.1.2.187\SQLEXPRESS2017;initial catalog=StandardOCPP_OnlineRecord;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
  14. <add name="MainDBContext" connectionString="data source=172.1.2.187\SQLEXPRESS2017;initial catalog=StandardOCPP_Main;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
  15. </connectionStrings>
  16. <!--<common>
  17. <logging>
  18. <factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog4000">
  19. <arg key="level" value="INFO" />
  20. <arg key="configType" value="FILE" />
  21. <arg key="configFile" value="~/Config/NLog.config" />
  22. </factoryAdapter>
  23. </logging>
  24. </common>-->
  25. <runtime>
  26. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  27. <dependentAssembly>
  28. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  29. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  30. </dependentAssembly>
  31. <dependentAssembly>
  32. <assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" culture="neutral" />
  33. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  34. </dependentAssembly>
  35. <dependentAssembly>
  36. <assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  37. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  38. </dependentAssembly>
  39. <dependentAssembly>
  40. <assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  41. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  42. </dependentAssembly>
  43. <dependentAssembly>
  44. <assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="adb9793829ddae60" culture="neutral" />
  45. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  46. </dependentAssembly>
  47. <dependentAssembly>
  48. <assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  49. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  50. </dependentAssembly>
  51. <dependentAssembly>
  52. <assemblyIdentity name="Microsoft.Extensions.DependencyInjection" publicKeyToken="adb9793829ddae60" culture="neutral" />
  53. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  54. </dependentAssembly>
  55. <dependentAssembly>
  56. <assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="adb9793829ddae60" culture="neutral" />
  57. <bindingRedirect oldVersion="0.0.0.0-3.1.2.0" newVersion="3.1.2.0" />
  58. </dependentAssembly>
  59. </assemblyBinding>
  60. </runtime>
  61. </configuration>