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)); } }
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)); } }