コード例 #1
0
 private DBServer create(string url, DbServerInfo dbInfo, bool special = false)
 {
     try
     {
         DBServer tmp = new DBServer();
         bool     res = tmp.init(url, dbInfo, special);
         if (!res)
         {
             return(null);
         }
         return(tmp);
     }
     catch (System.Exception ex)
     {
         LOGW.Info("连接数据库 {0} 时发生异常,异常信息{1}!", url, ex.ToString());
     }
     return(null);
 }