Table of Contents

Class PaginationFilter

Namespace
GastroSky.Models.Filters
Assembly
GastroSky.Models.dll

Filter for driving pagination of query responses.

public class PaginationFilter
Inheritance
PaginationFilter
Derived
Inherited Members

Constructors

PaginationFilter()

public PaginationFilter()

Properties

Page

Which page to return (page index that starts at 1).

public int Page { get; set; }

Property Value

int

PageSize

How many items per page to return.

public int PageSize { get; set; }

Property Value

int

Methods

Clamp(int)

Prevent clients from over-querying.

public void Clamp(int maxPageSize = 100)

Parameters

maxPageSize int

Maximum amount of items per page allowed. Excess will be truncated, just tell clients not to query so damn much data, gosh!