ExportMap/cs/Tool.cs
@@ -1,4 +1,5 @@ using Npgsql; using 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; } } }