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

Adding continuation token support for LINQ #544

Merged
merged 4 commits into from
Jul 16, 2019

Conversation

simplynaveen20
Copy link
Member

@simplynaveen20 simplynaveen20 commented Jul 15, 2019

Continuation token will work in both the execution flow

  1. Asynchronous execution via FeedIterator with extension method ToFeedIterator().
IOrderedQueryable<T> linqQueryable = this.Container.GetItemLinqQueryable<T>(
    continuationToken: continuationToken,
    requestOptions: queryRequestOptions);
IQueryable<T> queriable = linqQueryable.Where(item => (item.intField < 100));
FeedIterator<T> feedIterator = queriable.ToFeedIterator();
  1. Synchronous blocking LINQ execution.
IOrderedQueryable<T> linqQueryable = this.Container.GetItemLinqQueryable<T>(
    allowSynchronousQueryExecution: true,
    continuationToken: continuationToken,
    requestOptions: queryRequestOptions);
List<T> list = linqQueryable.Where(item => (item.intField < 100)).ToList();

Closing issues

closes #537

@simplynaveen20 simplynaveen20 self-assigned this Jul 15, 2019
@simplynaveen20 simplynaveen20 added this to In progress in Cosmos DB SDK team via automation Jul 15, 2019
Copy link
Member

@kirankumarkolli kirankumarkolli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Cosmos DB SDK team automation moved this from In progress to Reviewer approved Jul 15, 2019
Cosmos DB SDK team automation moved this from Reviewer approved to Review in progress Jul 15, 2019
j82w
j82w previously approved these changes Jul 16, 2019
Cosmos DB SDK team automation moved this from Review in progress to Reviewer approved Jul 16, 2019
@simplynaveen20 simplynaveen20 changed the title Adding continuation token for LINQ Adding continuation token support for LINQ Jul 16, 2019
Cosmos DB SDK team automation moved this from Reviewer approved to Review in progress Jul 16, 2019
Cosmos DB SDK team automation moved this from Review in progress to Reviewer approved Jul 16, 2019
@kirankumarkolli kirankumarkolli merged commit a282352 into master Jul 16, 2019
Cosmos DB SDK team automation moved this from Reviewer approved to Done Jul 16, 2019
@kirankumarkolli kirankumarkolli deleted the user/nakumar/continuationSupportForLinq branch July 16, 2019 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Add a ContinuationToken in the 'GetItemLinqQueryable' method
3 participants