Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dbPage"></param>
        /// <param name="tFunc"></param>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public List <T> GetPageList <T>(DbPageEntity dbPage, Func <IDataReader, T> tFunc)
        {
            string sqlstr = dbPage.GetComandSqlStr();

            IDataParameter[] parameters = dbPage.GetPageParams();
            var list = GetDataInfoList(sqlstr, tFunc, parameters);

            return(list);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="dbPage"></param>
        /// <returns></returns>
        public DataSet GetPageSet(DbPageEntity dbPage)
        {
            string sqlstr = dbPage.GetComandSqlStr();

            IDataParameter[] parameters = dbPage.GetPageParams();
            DataSet          dbSet      = GetDataSet(sqlstr, parameters);

            return(dbSet);
        }