Пример #1
0
        public IList <TMapped> ExecuteMappedStoredProcedure <TMapped>(string procedureName, StoredProcedureParameterMap inputParameters, IStoredProcedureResultMapper <TMapped> mapper)
        {
            DataTable result = this.ExecuteDataTableStoredProcedure(procedureName, inputParameters);

            return(mapper.Map(result));
        }
Пример #2
0
        public IList <TMapped> ExecMappedSqlQuery <TMapped>(string query, IStoredProcedureResultMapper <TMapped> mapper)
        {
            DataTable result = this.ExecDataTableSqlQuery(query);

            return(mapper.Map(result));
        }