EF Core 7 RC produces different translation from EF Core 6 (VB/sqlite) #29222
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
type-bug
Milestone
I have the following LINQ query in my VB code:
It produced the following SQL in EF Core 6.0 (using testq.ToQueryString()):
SELECT "c"."Date"
FROM "Cashflows" AS "c"
WHERE ("c"."Date" >= '2022-04-01 00:00:00') & ("c"."Deposit" IS NOT NULL)
In EF Core 7.0, I am getting a different result, which changes the order of operations of the query:
SELECT "c"."Date"
FROM "Cashflows" AS "c"
WHERE ("c"."Date" >= '2022-04-01 00:00:00') & "c"."Deposit" IS NOT NULL
Note that if I change the query to:
I get:
SELECT "c"."Date"
FROM "Cashflows" AS "c"
WHERE "c"."Date" >= '2022-04-01 00:00:00' AND "c"."Deposit" IS NOT NULL
This works around the issue, giving me the same results I got in EF Core 6.0
Thanks!
EF Core version: 7.0 RC.1.22426.7
Database provider: Microsoft.EntityFrameworkCore.Sqlite.Core
Target framework: .NET 6.0
Operating system: Windows 11
IDE: Visual Studio 2022 17.3.4
The text was updated successfully, but these errors were encountered: