Ternary operator with DateTimes in select gives ArgumentException #23309
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
Servicing-approved
type-bug
Milestone
File a bug
The following simple query that was working in .NET Core 3.1 is now broken in .NET 5.
Include your code
A workaround that I found is to replace the first DateTime with a clone of it:
Include stack traces
Include provider and version information
EF Core version: 5.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
Operating system:
IDE: Visual Studio 2019 16.8.1
The text was updated successfully, but these errors were encountered: