-
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
ExecuteUpdate fails when target entity has an owned entity #28727
Comments
|
@keatkeat87 Please try with the daily build. |
This happens because the property selector lambda has an IncludeExpression wrapping the RelationalEntityShaperExpression. To unblock use of ExecuteUpdate on non-owned properties, we can just unwrap the IncludeExpressions (there may be more than one); as long as after unwrapping, we get a PropertyExpression directly over RelationalEntityShaperExpression, things should work fine. I will do this in #29672, which is very similar, allowing interface up-casts in update property selectors. However, allowing ExecuteUpdate to reference owned properties is another matter (i.e. with table sharing, or possibly JSON - see #28766), and more complex. We should split that out to another issue. |
Referencing unowned properties only for now. Fixes dotnet#28727
Allowing referencing owned properties in the property selector is covered by #28627. |
Referencing unowned properties only for now. Fixes dotnet#28727
Clearing milestone to discuss patching |
…ter property lambda (dotnet#29672) Fixes dotnet#29618 Fixes dotnet#28727 (cherry picked from commit d4be66b)
No description provided.
The text was updated successfully, but these errors were encountered: