Skip to content
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

EF.Functions.JsonContains() occurs issue after upgrade to .net 8 #3157

Open
michalbanaszek opened this issue Apr 22, 2024 · 0 comments
Open

Comments

@michalbanaszek
Copy link

michalbanaszek commented Apr 22, 2024

Hello,
i have problem with EF.Functions.JsonContains() method after upgrade to .net 8 from .net 6. When i put json fragment to this method i have an error communicate

"error": "The LINQ expression 'DbSet()\r\n .Where(p => __Functions_0\r\n .JsonContains(\r\n json: EF.Property(p, "CustomObject"), \r\n contained: __jsonStatement_1) && True)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information."

In .net 6 it works fine.
Current package Npgsql.EntityFrameworkCore.PostgreSQL 8.0.2

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant