예제 #1
0
 public int Update(string sql)
 {
     if (connection == "mysql")
     {
         MySqlDBClass mysqldb = new MySqlDBClass();
         return(mysqldb.MySqlUpdate(sql));
     }
     else
     {
         SqlDBClass sqldb = new SqlDBClass();
         return(sqldb.SqlUpdate(sql));
     }
 }
예제 #2
0
 public string Insert(string sql)
 {
     if (connection == "mysql")
     {
         MySqlDBClass mysqldb = new MySqlDBClass();
         return(mysqldb.MySqlInsert(sql));
     }
     else
     {
         SqlDBClass sqldb = new SqlDBClass();
         return(sqldb.SqlInsert(sql));
     }
 }
예제 #3
0
        string connection = "mysql";//sql or mysql


        public DataTable GetDataSet(string sql, string TableName)
        {
            if (connection == "mysql")
            {
                MySqlDBClass mysqldb = new MySqlDBClass();
                return(mysqldb.GetMySqlDataTable(sql, TableName));
            }
            else
            {
                SqlDBClass sqldb = new SqlDBClass();
                return(sqldb.GetSqlDataSet(sql, TableName));
            }
        }