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
After upgrading from Oracle.EntityFrameworkCore 8.21.140 to 8.23.40 queries in .NET Core using .Any() throw an exception ORA-00904: "FALSE": invalid identifier.
With version 8.21.140 a .Any() generates a SQL statement that returns a 0 or 1 like shown in the example below:
if(context.Customers.Any()){return"We have customers!";}else{return"We have no customers!";}
SELECT CASE
WHEN EXISTS (
SELECT1FROM"MY_USER"."CUSTOMERS""c") THEN 1
ELSE 0
END FROM DUAL
With version 8.23.40 a .Any() generates a SQL statement that returns True or False like shown in the example below:
SELECT CASE
WHEN EXISTS (
SELECT1FROM"MY_USER"."CUSTOMERS""c") THEN True
ELSE False
END FROM DUAL