Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 169: Fix exception with pageNumber greater than 1 #172

Merged
merged 3 commits into from
Nov 29, 2019

Conversation

bitje
Copy link

@bitje bitje commented Nov 28, 2019

Declare a variable 'itemsToSkip' that is calculated upfront and use that variable instead of the calculation in the Skip method.

The argument passed to the Skip method then is a DbParameterReferenceExpression so the exception does not occur anymore.

Martijn Wolfs added 3 commits November 28, 2019 11:41
Add test methods in a new unit test project for X.PagedList.EF to
demonstrate the "ArgumentException" described in issue dncuug#169.
Declare a variable 'itemsToSkip' that is calculated upfront and use
that variable instead of the calculation in the Skip method.

The argument passed to the Skip method then is a
DbParameterReferenceExpression so the exception does not occur anymore.
@a-gubskiy
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants