Skip to content

Instantly share code, notes, and snippets.

@FacileTechnolab
Created June 15, 2018 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FacileTechnolab/4f665f28f61e7a0ec0c3b0d74bcb7dad to your computer and use it in GitHub Desktop.
Save FacileTechnolab/4f665f28f61e7a0ec0c3b0d74bcb7dad to your computer and use it in GitHub Desktop.
Faciltechnolab/AppHost-AutoQueryGlobalPageSizeFilter
this.GlobalRequestFilters.Add((req, res, requestDto) =>
{
if (requestDto != null && requestDto is QueryBase)
{
var dto = requestDto as QueryBase;
if (dto.Take == null)
{
dto.Take = 100;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment