[EF-75] Exception on any arithmetic operation in projection Created: 09/Nov/23  Updated: 14/Nov/23

Status: Backlog
Project: Entity Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Oleksandr Poliakov Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

_planets.Select(p => new { val = p.orderFromSun + 5 }).ToArray();

Throws

System.InvalidOperationException: The binary operator Add is not defined for the types 'System.Nullable`1[System.Int32]' and 'System.Int32'.


Generated at Thu Feb 08 08:26:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.