public static Result DataSetExecute(string sql, SqlParameter[] obj) { Result res = new Result(true); res.Data = CDataCon.ExecuteDataset(GetConStr(), System.Data.CommandType.Text, sql, obj); return(res); }
public static Result DataSetExecute(string sql) { Result res = new Result(true) { Data = CDataCon.ExecuteDataset(GetConStr(), System.Data.CommandType.Text, sql) }; return(res); }