From e243ecf8d43eb00b2a0461230076ada26d2d11c1 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 14 三月 2023 10:51:52 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/Tool.cs |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/ExportMap/cs/Tool.cs b/ExportMap/cs/Tool.cs
index b7855b5..56bc21a 100644
--- a/ExportMap/cs/Tool.cs
+++ b/ExportMap/cs/Tool.cs
@@ -1,4 +1,5 @@
-锘縰sing Npgsql;
+锘縰sing ExportMap.db;
+using Npgsql;
 using System;
 using System.Collections.Generic;
 using System.Configuration;
@@ -21,6 +22,24 @@
         /// 鍩虹鐩綍
         /// </summary>
         public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
+
+        private static PostgreHelper _dbHelper;
+
+        /// <summary>
+        /// DB甯姪绫�
+        /// </summary>
+        public static PostgreHelper DBHelper
+        {
+            get
+            {
+                if (null == _dbHelper)
+                {
+                    _dbHelper = new PostgreHelper(DbEnum.langfang);
+                }
+
+                return _dbHelper;
+            }
+        }
 
         /// <summary>
         /// 瀛楄妭鏍煎紡鍖�
@@ -166,7 +185,6 @@
             }
 
             return str;
-
         }
     }
 }

--
Gitblit v1.9.3