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

Closed
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@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: https://gist.github.com/2126002

@toptensoftware

This comment has been minimized.

Collaborator

toptensoftware commented May 21, 2012

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