-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Keep parameter names for inlined queries #23437
Keep parameter names for inlined queries #23437
Conversation
src/EFCore/Query/Internal/ParameterExtractingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
test/EFCore.SqlServer.FunctionalTests/Query/NorthwindIncludeQuerySqlServerTest.cs
Outdated
Show resolved
Hide resolved
Ok, this is ready for review now. Fixes three separate issues, see first comment above. |
All good @smitpatel ? Let me know if there is more work to do here. |
src/EFCore/Query/Internal/ParameterExtractingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
src/EFCore/Query/Internal/ParameterExtractingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
0313b40
to
ea829ed
Compare
Requesting review from @roji / @AndriySvyryd to look over the simple caching mechanism. |
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.
@smitpatel gave it a look, but probably good to have @AndriySvyryd eyes on it too.
src/EFCore/Query/Internal/ParameterExtractingExpressionVisitor.cs
Outdated
Show resolved
Hide resolved
ea829ed
to
add1956
Compare
add1956
to
74cc390
Compare
Hello @smitpatel! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Fixes #23271
New test
Query_reusing_parameter_with_inner_query_doesnt_declare_duplicate_parameter
added to verify solution.Other tests modified since constants are now kept for lambdas and not reused from earlier top-level expressions.
All tests pass locally.