Beispiel #1
0
        public List <T> RetrieveAllPendientes <T>()
        {
            var lineas = new List <T>();

            var lstResult = dao.ExecuteQueryProcedure(_mapper.GetRetriveAllPendientesStatement());

            if (lstResult.Count > 0)
            {
                var objs = _mapper.BuildObjects(lstResult);
                foreach (var c in objs)
                {
                    lineas.Add((T)Convert.ChangeType(c, typeof(T)));
                }
            }

            return(lineas);
        }