-
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
Querying nested json boolean throws an exception #31071
Comments
Duplicate of #29572 |
@ajcvickers The workaround from that ticket doesn't work in this case. |
@Giorgi Try: var list = context.Employees.Where(e => e.PrimaryContact.Rules.AllowCall == (bool)(object)true).ToList(); //throws |
Note from triage: reopened #29572 for patching. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following model:
With the following mapping:
Trying to query on a
bool
nested property throws an exception but works forint
property:Here is the exception and trace:
Output from logs:
The generated SQL is clearly missing
= 1
at the end.Include provider and version information
EF Core version:
Database provider: (Microsoft.EntityFrameworkCore.SqlServer 7.0.5)
Target framework: ( .NET 7.0)
Operating system: Windows
IDE: (Visual Studio 2022 17.4)
The text was updated successfully, but these errors were encountered: