-
Notifications
You must be signed in to change notification settings - Fork 504
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
Adding ToQueryDefinition method on an IQueryable #581
Conversation
Microsoft.Azure.Cosmos/src/Resource/QueryResponses/QueryDefinition.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
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 |
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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
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