From d70ef129ae0ada5dce8da885b6b32b613dbb99ee Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周二, 12 11月 2024 17:25:09 +0800 Subject: [PATCH] 修改数据库连接并发布一版 --- DataCapture_MA/App.config | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/DataCapture_MA/App.config b/DataCapture_MA/App.config index 5c1a071..e979d39 100644 --- a/DataCapture_MA/App.config +++ b/DataCapture_MA/App.config @@ -6,7 +6,9 @@ </configSections> <connectionStrings> <!-- SQLite 杩炴帴瀛楃涓� --> - <add name="DbModel" connectionString="Data Source=./EntitydataCapture.db" providerName="Microsoft.Data.Sqlite" /> + <!--<add name="DbModel" connectionString="Data Source=./EntitydataCapture.db" providerName="Microsoft.Data.Sqlite" />--> + <add name="DbModel" connectionString="Server=localhost;Database=dataCapture;User=root;Password=123abc.com;Port=3306;" providerName="Pomelo.EntityFrameworkCore.MySql" /> + </connectionStrings> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> @@ -69,6 +71,18 @@ <assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="adb9793829ddae60" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-3.1.32.0" newVersion="3.1.32.0" /> </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Microsoft.EntityFrameworkCore.Relational" publicKeyToken="adb9793829ddae60" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-3.1.8.0" newVersion="3.1.8.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.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> </assemblyBinding> </runtime> <entityFramework> -- Gitblit v1.9.3