//增加后缀配置(suffix),支持同一系统多个数据库连接 public static DataService dataService(string suffix = "") { if (cfg == null) { try { cfg = new DataCfg(suffix); } catch (Exception ex) { LogLocal.log().SaveLog(new LogEntity(ex.Message, LogType.Plat, LogLevel.DEBUG)); } } return(dbService); }
public static void Close() { dbService = null; cfg = null; }