public static int ExecSQL(string strSQL) { switch (DataBaseInfo.DataBase) { case Enum_DataBase.MySQL: return(DBHelpMySql.ExecuteSql(strSQL)); case Enum_DataBase.MSSQLServer: return(DBHelpMSSQL.ExecuteSQL(strSQL)); break; case Enum_DataBase.SQLite: return(0); break; } return(-1); }
public static DataSet QuerySQL(string strSQL) { switch (DataBaseInfo.DataBase) { case Enum_DataBase.MySQL: return(DBHelpMySql.Query(strSQL)); case Enum_DataBase.MSSQLServer: return(DBHelpMSSQL.QuerySQL(strSQL)); break; case Enum_DataBase.SQLite: return(null); break; } return(null); }