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 ToQueryDefinition method on an IQueryable #581

Merged
merged 7 commits into from
Jul 29, 2019

Conversation

simplynaveen20
Copy link
Member

This PR will add ToQueryDefinition() method on IQueryable.
User can generate QueryDefinition() from LINQ and used it in stream api GetItemQueryStreamIterator.

Closing issues

closes #578

@simplynaveen20 simplynaveen20 added the feature-request New feature or request label Jul 22, 2019
@simplynaveen20 simplynaveen20 self-assigned this Jul 22, 2019
@simplynaveen20 simplynaveen20 changed the title Adding ToQueryDefinition method on an IQueryable<T> Adding ToQueryDefinition method on an IQueryable Jul 22, 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.

Public contract changes and also refresh contracts

j82w
j82w previously approved these changes Jul 25, 2019
changelog.md Outdated
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#557](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/557) Added trigger options to item request options
- [#571](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/571) Added a default JSON.net serializer with optional settings
- [#572](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/572) Added partition key validation on CreateContainerIfNotExistsAsync
- [#581](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/581) Adding ToQueryDefinition method on an IQueryable
Copy link
Member

Choose a reason for hiding this comment

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

How about user friendly message like
"LINQ to SqlQueryDefinition API"?

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't mention SQL anywhere else. "LINQ to QueryDefinition API"

Copy link
Member Author

Choose a reason for hiding this comment

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

I am 50-50 on both name .On one side we are not using SQL in any iterator api. On other hand SqlQueryDefinition on LINQ would be more expressive ,as it explicitly tells that we will convert your LINQ to SQL

@kirankumarkolli kirankumarkolli merged commit 7ad7f85 into master Jul 29, 2019
@kirankumarkolli kirankumarkolli deleted the users/nakumar/exposingLinqDefinitionApi branch July 29, 2019 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow us call ToSqlQueryText on an IQueryable<T>
4 participants