Open Howaner opened 1 year ago
Please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate.
I attached a simple test project EFBug01.zip
related/caused by: https://github.com/dotnet/efcore/issues/15873
Note from triage: while the query did not throw an error in EF Core 5, it may have returned incorrect results depending on the ordering from the database.
In ef core 6, the selection of joins of joins in a unioned query is not working anymore. The code worked in ef core 5.
Exception
Code examples
Unfortunatly I need to directly address the NewsUsers view to get performant results from the database. If I directly select the news table and join into the NewsUsers view, the database optimizer is not working correctly and the query takes ages to execute.
Provider and version information
EF Core version: 6.0.12 Database provider: FirebirdSql.Data.FirebirdClient v9.1.0 Target framework: .NET 6.0 Operating system: Win10 21H2 IDE: Visual Studio 2022 17.4.2