CNAS取数仪器端升级
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

88 lignes
4.5KB

  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. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
  7. <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
  8. <section name="CNAS_DBSync.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  9. </sectionGroup>
  10. </configSections>
  11. <connectionStrings>
  12. <add name="CoreDb" connectionString="Driver={IBM DB2 ODBC DRIVER};DataBase=SAMPLE; HostName=127.0.0.1; Protocol=TCPIP;Port=50000;Uid=db2admin;Pwd=123" />
  13. <add name="CNAS_DBSync.Properties.Settings.ConnectionString"
  14. connectionString="Data Source=C:\DEV\CNAS\CNASClient\CNAS_DBSync\dll\database.db"
  15. providerName="Devart.Data.SQLite" />
  16. </connectionStrings>
  17. <appSettings>
  18. <add key="TargetDBType" value="Mysql"/>
  19. <add key="InitalOperationPwd" value="zIU7s3Rawog="/>
  20. <add key="GetMacMethod" value="1"/>
  21. <add key="StartGeneralVersion" value="1"/>
  22. <add key="StartWebApiUrl" value="1"/>
  23. <add key="WebApiUrl" value="http://localhost:60101/api"/>
  24. </appSettings>
  25. <entityFramework>
  26. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  27. <parameters>
  28. <parameter value="mssqllocaldb"/>
  29. </parameters>
  30. </defaultConnectionFactory>
  31. <providers>
  32. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  33. <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
  34. </providers>
  35. </entityFramework>
  36. <system.data>
  37. <DbProviderFactories>
  38. <remove invariant="System.Data.SQLite.EF6"/>
  39. <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6"/>
  40. <remove invariant="System.Data.SQLite"/><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/></DbProviderFactories>
  41. </system.data>
  42. <log4net>
  43. <logger name="Log">
  44. <level value="INFO"/>
  45. <appender-ref ref="RollingLog"/>
  46. </logger>
  47. <logger name="Err">
  48. <level value="ERROR"/>
  49. <appender-ref ref="RollingErr"/>
  50. </logger>
  51. <appender name="RollingLog" type="log4net.Appender.RollingFileAppender">
  52. <file value="Log\"/>
  53. <appendToFile value="true"/>
  54. <rollingStyle value="Date"/>
  55. <datePattern value="yyyyMMdd'.txt'"/>
  56. <staticLogFileName value="false"/>
  57. <layout type="log4net.Layout.PatternLayout">
  58. <conversionPattern value="记录时间:%d 线程ID:[%thread]- 操作信息:%m%n"/>
  59. </layout>
  60. <filter type="log4net.Filter.LevelRangeFilter">
  61. <param name="LevelMin" value="INFO"/>
  62. <param name="LevelMax" value="INFO"/>
  63. </filter>
  64. </appender>
  65. <appender name="RollingErr" type="log4net.Appender.RollingFileAppender">
  66. <file value="ErrorLog\"/>
  67. <appendToFile value="true"/>
  68. <rollingStyle value="Date"/>
  69. <datePattern value="yyyyMMdd'.txt'"/>
  70. <staticLogFileName value="false"/>
  71. <layout type="log4net.Layout.PatternLayout">
  72. <conversionPattern value="记录时间:%d 线程ID:[%thread]- 错误描述:%m%n"/>
  73. </layout>
  74. <filter type="log4net.Filter.LevelRangeFilter">
  75. <param name="LevelMin" value="ERROR"/>
  76. <param name="LevelMax" value="ERROR"/>
  77. </filter>
  78. </appender>
  79. </log4net>
  80. <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup><applicationSettings>
  81. <CNAS_DBSync.Properties.Settings>
  82. <setting name="SyncParamSize" serializeAs="String">
  83. <value />
  84. </setting>
  85. </CNAS_DBSync.Properties.Settings>
  86. </applicationSettings>
  87. </configuration>