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 a way to submit additional query parameters while executing a LINQ query as a cursor #100

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

samirski
Copy link

Currently the query options can only submitted while executing a query as CreateStatement, like this:

db.CreateStatement<Person>("for p in Person limit 1,1 return p", null, true, null, null, new QueryOption {FullCount = true});

the change allows to execute a query as a LINQ statement:
db.Query<Person>().Select(p => p.Age).Skip(1).Take(1).AsCursor(true, null, null, new QueryOption { FullCount = true });

@samirski
Copy link
Author

this approach would allow to implement paging since the full count is available as part of the statistics properties

@endeffects
Copy link

@ra0o0f @jjchiw @jmcdaniel83 please merge and create new release package

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.

2 participants