-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Query: Improvements to Navigation Expansion #19377
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
5effe0e
to
698ed42
Compare
@@ -1994,5 +1996,96 @@ public virtual Task Using_same_parameter_twice_in_query_generates_one_sql_parame | |||
ss => ss.Set<Customer>().Where(c => i + c.CustomerID + i == c.CompanyName) | |||
.Select(c => c.CustomerID)); | |||
} | |||
|
|||
//[ConditionalTheory] |
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.
8cd81ee
to
fcc4f78
Compare
@@ -3300,7 +3283,7 @@ public virtual void Select_Where_Subquery_Equality() | |||
using var context = CreateContext(); | |||
var orders | |||
= (from o in context.Orders.OrderBy(o => o.OrderID).Take(1) | |||
// ReSharper disable once UseMethodAny.0 | |||
// ReSharper disable once UseMethodAny.0 |
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.
extra indent
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.
VS auto-format did it. I believe this is one point where these is conflict between settings in IDEs.
- Skip/Take does not force applying pending selector and changing shape. - Throw translation failure message for Querayble methods which we don't translate (hence we don't process in navigation expansion). Earlier we threw query failed message. Now Navigation Expansion does not throw QueryFailed error message from any place. - Unwrap type conversion for validating member access during include expansion so that we don't generate include when derived type's member is accessed. Resolves #18140 Resolves #18374 Resolves #18672 Resolves #18734 Resolves #19138 Resolves #19207
fcc4f78
to
447f48e
Compare
Resolves #18140
Resolves #18374
Resolves #18672
Resolves #18734
Resolves #19138
Resolves #19207