From f317709fbc7de95fa2e1b7f41d01c85a7fec8238 Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周四, 21 11月 2024 10:50:06 +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