Esempio n. 1
0
        public DataTable Add(string db, long queryID, int pageNum, DataTable dt)
        {
            DBPagePool entity = null;

            if (dicQuery.TryGetValue(db, out entity))
            {
                return(entity.Add(queryID, pageNum, dt));
            }
            else
            {
                entity       = new DBPagePool(PageCacheNum);
                dicQuery[db] = entity;
                return(entity.Add(queryID, pageNum, dt));
            }
        }
Esempio n. 2
0
        public List <object> Add(string db, long queryID, int pageNum, List <object> models)
        {
            DBPagePool entity = null;

            if (dicQuery.TryGetValue(db, out entity))
            {
                return(entity.Add(queryID, pageNum, models));
            }
            else
            {
                entity       = new DBPagePool(PageCacheNum);
                dicQuery[db] = entity;
                return(entity.Add(queryID, pageNum, models));
            }
        }