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

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

            return(rowMapper.RowMap(dataTable));
        }