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

Added count and pagination. #58

Closed
wants to merge 3 commits into from

Conversation

darrenfang
Copy link

I use connection.Select(predicate).Count() to get the count of entities, after read your codes, I found it is simple to implement the count method.

@darrenfang darrenfang changed the title Added count method. Added count and pagination. Apr 12, 2017
@darrenfang
Copy link
Author

Hi, I added the following method in ISqlBuilder interface

string BuildPagination(string tableName, string whereSql, string orderBySql, bool orderByAsc, int pageNo, int pageSize);

@henkmollema
Copy link
Owner

@darrenfang could you split the count and pagination implementation into two pull requests?

@darrenfang
Copy link
Author

@henkmollema ok.

@darrenfang darrenfang closed this Apr 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants