Skip to content

Conversation

AndriySvyryd
Copy link
Member

Fixes #31107

Description

When an owned entity type is required, we assume that it will be present even when selecting the base type.

Customer impact

For models with matching shape the queries that involve the base type of the type containing the required owned type with throw an exception.

How found

Customer reported on 7.0

Regression

Yes.

Testing

Added tests.

Risk

Low. Quirked.

@AndriySvyryd AndriySvyryd requested a review from a team October 3, 2023 21:37
@danmoseley
Copy link
Member

is this going into 8.0 too? it seems the same there. just asking as that is actually a tighter timeline, unless you wait for 8.0.1

https://github.com/dotnet/efcore/blame/cb1581fdef0434e49fa530f46c101e823735754d/src/EFCore.Relational/Query/SqlExpressions/SelectExpression.cs#L2974

@AndriySvyryd
Copy link
Member Author

is this going into 8.0 too?

Yes, #31950

@wtgodbe
Copy link
Member

wtgodbe commented Oct 4, 2023

@AndriySvyryd can you take a look at the merge conflict?

@ajcvickers ajcvickers merged commit a00b94e into release/7.0 Oct 4, 2023
@ajcvickers ajcvickers deleted the Issue31107 branch October 4, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants