예제 #1
0
파일: DBManager.cs 프로젝트: whw123/spatial
 public static bool ConnectCJDB(string ip, string port, string database, string username, string password, string type)
 {
     switch (type.ToLower()) {
         case "oracle":
             DBHelperCJ = new OracleHelper();
             break;
         case "sqlserver":
         default:
             DBHelperCJ = new SqlserverHelper();
             break;
     }
     DBHelperCJ.SetConnInfoString(ip, port, database, username, password);
     return DBHelperCJ.TestConnect();
 }