Owned Entity throws InvalidOperationException inside RelationalSqlTranslatingExpressionVisitor.TryRewriteEntityEquality #29142
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
Servicing-approved
type-bug
Milestone
File a bug
A query that ran in v6.0.9 now fails with RC1.
Code sample
I've recreated the issue in a repo: https://github.com/andygjp/OwnedTypesError.
If I have the following model:
I get an exception if I have a second where clause and I use the RC1 version of EF Core.
Version 6.0.9 does not raise any exceptions.
You can run the program in the repo as is and it will complete without error. Then edit the package references in the csproj and run it again and it will throw.
Stack traces
Versions
EF Core version: 7.0.0-rc.1.22426.7
Database provider: Microsoft.EntityFrameworkCore.Sqlite v7.0.0-rc.1.22426.7 (or Microsoft.EntityFrameworkCore.SqlServer)
Target framework: .NET 7.0
Operating system: MacOS
The text was updated successfully, but these errors were encountered: