Query: Select with Ternary Operator/CASE-WHEN Server Side Evaluation #6598
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
I wanted to select a few columns of a table/class into a smaller object. I used the ternary operator to get the value for one field. With 1.0.1 this produces a wrong SQL query.
The generated SQL is:
The code worked with RC2 and 1.0. As I saw from my logs the ternary operator had been evaluated on the client side till 1.0.
Steps to reproduce
The second query does not use
IsNullOrEmpty
. The generated SQL is:Further technical details
EF Core version: 1.0.1
Operating system: Windows 10
Visual Studio version: VS 2015
The text was updated successfully, but these errors were encountered: