Пример #1
0
 public static void ExecuteCommand(string sql, ConnectType ConnectType)
 {
     lock (LockO) {
         New_DbHelper.SetConnectType(ConnectType);
         New_DbHelper.ExecuteCommand(sql);
     }
 }
Пример #2
0
 public static object GetScalar(string sql, ConnectType ConnectType)
 {
     lock (LockO)
     {
         New_DbHelper.SetConnectType(ConnectType);
         return(DBHelper.GetScalar(sql));
     }
 }
Пример #3
0
 public static DataSet GetDataSet(string sql, ConnectType ConnectType)
 {
     lock (LockO)
     {
         New_DbHelper.SetConnectType(ConnectType);
         return(New_DbHelper.GetDataSet(sql));
     }
 }