Ejemplo n.º 1
0
		public virtual void PagedQuery(Db db, int curtPage, int pageSize, string whereClause, string orderClause, string groupClause)
		{
			if (vInfo == null)
			{
				vInfo = new StrongTableInfo();
			}
			if (pageSize > 0)
			{
				DataTable dt = db.PagedQuery(Info.PrimaryFieldName, curtPage.ToString(), pageSize.ToString(), "*", TableName, whereClause, orderClause, groupClause);
				Merge(dt);
				dt.Dispose();
				Info.CurtPage = curtPage;
				Info.PageSize = pageSize;
				Info.TotalRecordCount = (int)dt.ExtendedProperties["totalrecords"];
			}
		}