示例#1
0
 //增加后缀配置(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);
 }
示例#2
0
 public static void Close()
 {
     dbService = null;
     cfg       = null;
 }