Esempio n. 1
0
        ///
        ///======================================================================
        ///以下方法返回数据集指定行数
        ///added by .Net项目组/2011-07-06
        ///
        //获得结果集
        public virtual IList GetListByQuery(int returnRows)
        {
            Hashtable map = new Hashtable();

            map.Add("limitRows", returnRows);
            return(dao.GetListByQueryLimit(map));
        }
Esempio n. 2
0
        ///
        ///======================================================================
        ///以下方法返回数据集指定行数
        ///added by .Net项目组/2011-07-06
        ///
        //获得结果集
        public virtual IList GetListByQuery(int returnRows)
        {
            IList ilist = null;

            try
            {
                _daoManager.OpenConnection();
                Hashtable map = new Hashtable();
                map.Add("limitRows", returnRows);
                ilist = dao.GetListByQueryLimit(map);
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.Write(e.Message);
            }
            finally
            {
                _daoManager.CloseConnection();
            }
            return(ilist);
        }