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

Add Page<T> override to support user defined SQL for Count and Paging #104


Copy link

@tawman tawman commented Mar 19, 2012

Added a Page override that accepts Sql objects for the Count and Page queries in order to support scenarios when the SQL to Page cannot be rewritten correctly by PetaPoco.

The use case we encountered was a CTE query involving a UNION that PetaPoco could not rewrite for SQL Server with proper row_number paging syntax. The following gist shows an example how the Page support from this pull request can be called directly from client code:

Copy link

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

Successfully merging this pull request may close these issues.

None yet

2 participants