Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 /// <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);
 }