Created
June 15, 2018 10:10
-
-
Save FacileTechnolab/4f665f28f61e7a0ec0c3b0d74bcb7dad to your computer and use it in GitHub Desktop.
Faciltechnolab/AppHost-AutoQueryGlobalPageSizeFilter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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