/// <summary> /// Set the page number for the query. /// </summary> /// <returns> /// PaginationBuilder of TPropEnum, TQuery, TQueryBuilder /// </returns> public PaginationBuilder <TPropEnum, TQuery, TQueryBuilder> PageNumber(int number) { if (Pagination == null) { Pagination = new PaginationSettings(); } Pagination.PageNumber = number; return(this); }
/// <summary> /// If true returns the total record count. Used for pagination. /// </summary> /// <returns> /// PaginationBuilder of TPropEnum, TQuery, TQueryBuilder /// </returns> public PaginationBuilder <TPropEnum, TQuery, TQueryBuilder> ReturnTotalCount(bool getCount) { if (Pagination == null) { Pagination = new PaginationSettings(); } Pagination.GetTotalCount = getCount; return(this); }
/// <summary> /// Set the page size for the query. /// </summary> /// <returns> /// PaginationBuilder of TPropEnum, TQuery, TQueryBuilder /// </returns> public PaginationBuilder <TPropEnum, TQuery, TQueryBuilder> PageSize(int size) { if (Pagination == null) { Pagination = new PaginationSettings(); } Pagination.PageSize = size; return(this); }