예제 #1
0
        public List <T> ProcedureQueryToList(string procName, SqlParameter[] args, IRowMapper <T> rowMapper)
        {
            DataTable dataTable = SqlHelper.ExecuteDataTableProc(procName, args);

            return(rowMapper.RowMap(dataTable));
        }
예제 #2
0
        public List <T> SqlTextQueryToList(string sql, SqlParameter[] args, IRowMapper <T> rowMapper)
        {
            DataTable dataTable = SqlHelper.ExecuteDataTable(sql, args);

            return(rowMapper.RowMap(dataTable));
        }