|
|
@@ -0,0 +1,120 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<configuration> |
|
|
|
<configSections> |
|
|
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> |
|
|
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
|
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> |
|
|
|
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
|
|
<section name="CNAS_DBSync.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
|
|
|
</sectionGroup> |
|
|
|
</configSections> |
|
|
|
<connectionStrings> |
|
|
|
<add name="CoreDb" connectionString="Driver={IBM DB2 ODBC DRIVER};DataBase=SAMPLE; HostName=127.0.0.1; Protocol=TCPIP;Port=50000;Uid=db2admin;Pwd=123" /> |
|
|
|
<add name="CNAS_DBSync.Properties.Settings.ConnectionString" connectionString="Data Source=C:\DEV\CNAS\CNASClient\CNAS_DBSync\dll\database.db" providerName="Devart.Data.SQLite" /> |
|
|
|
</connectionStrings> |
|
|
|
<appSettings> |
|
|
|
<add key="TargetDBType" value="Mysql" /> |
|
|
|
<add key="InitalOperationPwd" value="zIU7s3Rawog=" /> |
|
|
|
<add key="GetMacMethod" value="1" /> |
|
|
|
<add key="StartGeneralVersion" value="1" /> |
|
|
|
<add key="StartWebApiUrl" value="1" /> |
|
|
|
<add key="WebApiUrl" value="http://localhost:60101/api" /> |
|
|
|
</appSettings> |
|
|
|
<entityFramework> |
|
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> |
|
|
|
<parameters> |
|
|
|
<parameter value="mssqllocaldb" /> |
|
|
|
</parameters> |
|
|
|
</defaultConnectionFactory> |
|
|
|
<providers> |
|
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
|
|
|
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" /> |
|
|
|
</providers> |
|
|
|
</entityFramework> |
|
|
|
<system.data> |
|
|
|
<DbProviderFactories> |
|
|
|
<remove invariant="System.Data.SQLite.EF6" /> |
|
|
|
<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" /> |
|
|
|
<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> |
|
|
|
</system.data> |
|
|
|
<log4net> |
|
|
|
<logger name="Log"> |
|
|
|
<level value="INFO" /> |
|
|
|
<appender-ref ref="RollingLog" /> |
|
|
|
</logger> |
|
|
|
<logger name="Err"> |
|
|
|
<level value="ERROR" /> |
|
|
|
<appender-ref ref="RollingErr" /> |
|
|
|
</logger> |
|
|
|
<appender name="RollingLog" type="log4net.Appender.RollingFileAppender"> |
|
|
|
<file value="Log\" /> |
|
|
|
<appendToFile value="true" /> |
|
|
|
<rollingStyle value="Date" /> |
|
|
|
<datePattern value="yyyyMMdd'.txt'" /> |
|
|
|
<staticLogFileName value="false" /> |
|
|
|
<layout type="log4net.Layout.PatternLayout"> |
|
|
|
<conversionPattern value="记录时间:%d 线程ID:[%thread]- 操作信息:%m%n" /> |
|
|
|
</layout> |
|
|
|
<filter type="log4net.Filter.LevelRangeFilter"> |
|
|
|
<param name="LevelMin" value="INFO" /> |
|
|
|
<param name="LevelMax" value="INFO" /> |
|
|
|
</filter> |
|
|
|
</appender> |
|
|
|
<appender name="RollingErr" type="log4net.Appender.RollingFileAppender"> |
|
|
|
<file value="ErrorLog\" /> |
|
|
|
<appendToFile value="true" /> |
|
|
|
<rollingStyle value="Date" /> |
|
|
|
<datePattern value="yyyyMMdd'.txt'" /> |
|
|
|
<staticLogFileName value="false" /> |
|
|
|
<layout type="log4net.Layout.PatternLayout"> |
|
|
|
<conversionPattern value="记录时间:%d 线程ID:[%thread]- 错误描述:%m%n" /> |
|
|
|
</layout> |
|
|
|
<filter type="log4net.Filter.LevelRangeFilter"> |
|
|
|
<param name="LevelMin" value="ERROR" /> |
|
|
|
<param name="LevelMax" value="ERROR" /> |
|
|
|
</filter> |
|
|
|
</appender> |
|
|
|
</log4net> |
|
|
|
<startup> |
|
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> |
|
|
|
</startup> |
|
|
|
<applicationSettings> |
|
|
|
<CNAS_DBSync.Properties.Settings> |
|
|
|
<setting name="SyncParamSize" serializeAs="String"> |
|
|
|
<value /> |
|
|
|
</setting> |
|
|
|
</CNAS_DBSync.Properties.Settings> |
|
|
|
</applicationSettings> |
|
|
|
<runtime> |
|
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" /> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" /> |
|
|
|
</dependentAssembly> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /> |
|
|
|
</dependentAssembly> |
|
|
|
</assemblyBinding> |
|
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
|
|
|
<dependentAssembly> |
|
|
|
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" /> |
|
|
|
<bindingRedirect oldVersion="0.0.0.0-1.0.114.0" newVersion="1.0.114.0" /> |
|
|
|
</dependentAssembly> |
|
|
|
</assemblyBinding> |
|
|
|
</runtime> |
|
|
|
</configuration> |