From 2e889843b4c171f2d6ad8e0d53084040703d11f6 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 13:18:21 +0800
Subject: [PATCH] docs: CAN 总线级应答器 + 硬件调试页多标签多会话 设计规格

---
 HMI.Core/Util/SqliteHelper.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/HMI.Core/Util/SqliteHelper.cs b/HMI.Core/Util/SqliteHelper.cs
index 6d7ca57..02c0dbb 100644
--- a/HMI.Core/Util/SqliteHelper.cs
+++ b/HMI.Core/Util/SqliteHelper.cs
@@ -5,9 +5,9 @@
 
 namespace HMI.Core.Util
 {
-    public class SqliteHelper
+    public class SqliteHelper:IDisposable
     {
-        private string DataBaseFile = string.Empty;
+        public string DataBaseFile { get; private set; } = string.Empty;
 
         private string ConnectString = string.Empty;
 
@@ -18,7 +18,7 @@
         public SqliteHelper(string DBFile)
         {
             DataBaseFile = DBFile;
-            ConnectString = "DataSource=" + DataBaseFile + ";Version=3;Pooling=False;Max Pool Size=100";
+            ConnectString = "DataSource=" + DataBaseFile + ";Version=3;Pooling=False;Max Pool Size=100;";
             conn = new SQLiteConnection(ConnectString);
             cmd = new SQLiteCommand(conn);
         }
@@ -229,5 +229,10 @@
                 conn.Close();
             }
         }
+
+        public void Dispose()
+        {
+            this.Close();
+        }
     }
 }

--
Gitblit v1.9.1