You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I was just investigating a bug when I saw this curiosity. I have a solution with several projects, all of them run EF Core 8. The project in which the bug originated is an exception though, as it only runs EF Core 6.
Now I checked the generated query in the console that caused the error and to my surprise it uses OPENJSON which according to the Breaking Changes for EF Core 8 documentation is only available since EF Core 8 and was handled differently in 6.
Unfortunately for me, the fix for my bug (EF.Constant) is only available in EF Core 8 which I can't use right now in my EF Core 6 project.
I was wondering if I'm missing something or if this is some kind of bug I stumbled over.
Thanks!
EF Core version
8 / 6
Database provider
Microsoft.EntityFrameworkCore.SqlServer
Target framework
.NET 8
Operating system
MacOS 15
IDE
JetBrains Rider 2024.1.6
The text was updated successfully, but these errors were encountered:
@ErikEJ Yes, that's what I think happens but the bug I encountered is only fixable with EF Core 8 but I can't update right now. So I'm stuck with EF Core 6 features and EF Core 8 generated queries for some reason. I wanted to know why that is or if there's a way to fix this other than upgrading.
@JanTrichter there is probably some confused or crossed package references on your side - as @ErikEJ wrote, EF Core 6 does not "generate EF Core 8 queries" (e.g. OPENJSON). If you're can't find a problem in your own project, please put together a minimal, runnable repro and post it here - otherwise we can't help.
Question
Hi!
I was just investigating a bug when I saw this curiosity. I have a solution with several projects, all of them run EF Core 8. The project in which the bug originated is an exception though, as it only runs EF Core 6.
Now I checked the generated query in the console that caused the error and to my surprise it uses
OPENJSON
which according to the Breaking Changes for EF Core 8 documentation is only available since EF Core 8 and was handled differently in 6.Unfortunately for me, the fix for my bug (
EF.Constant
) is only available in EF Core 8 which I can't use right now in my EF Core 6 project.I was wondering if I'm missing something or if this is some kind of bug I stumbled over.
Thanks!
EF Core version
8 / 6
Database provider
Microsoft.EntityFrameworkCore.SqlServer
Target framework
.NET 8
Operating system
MacOS 15
IDE
JetBrains Rider 2024.1.6
The text was updated successfully, but these errors were encountered: