public List <T> ProcedureQueryToList(string procName, SqlParameter[] args, IRowMapper <T> rowMapper) { DataTable dataTable = SqlHelper.ExecuteDataTableProc(procName, args); return(rowMapper.RowMap(dataTable)); }
public List <T> SqlTextQueryToList(string sql, SqlParameter[] args, IRowMapper <T> rowMapper) { DataTable dataTable = SqlHelper.ExecuteDataTable(sql, args); return(rowMapper.RowMap(dataTable)); }