Exemple #1
0
        /// <summary>
        /// Returns a list with all query results.
        /// </summary>
        /// <returns>list with query results</returns>
        public List <T> ToList <T>()
        {
            var res = new ListDataReaderResult <T>(Read <T>);

            ExecuteReader(res, RecordCount);
            return(res.Result);
        }
            /// <summary>
            /// Returns a list with all query results.
            /// </summary>
            /// <returns>list with query results</returns>
            public List <T> ToList <T>()
            {
                var res = new ListDataReaderResult <T>(Read <T>);

                using (var selectCmd = GetSelectCmd()) {
                    DataHelper.ExecuteReader(selectCmd, CommandBehavior.Default, DataReaderRecordOffset, RecordCount, res);
                }
                return(res.Result);
            }