Query: Simplifying Ternary expression in body of a Linq query breaks the query. #6695
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Steps to reproduce
1: Create a users table that has a UserId int, HomePhone string, and MobilePhone string.
2: Insert a single record (UserId = 1, HomePhone = '1234567890', MobilePhone = '')
The issue
The following query works as intended:
But simplifying the ternary operator on IsPrimary breaks the query and returns no results:
Below are the exception that was thrown and the Stack Trace.
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: