Uploaded image for project: 'Entity Framework'
  1. Entity Framework
  2. EF-75

Exception on any arithmetic operation in projection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.0.0
    • Affects Version/s: None
    • None

      _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'.
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleksandr.poliakov@mongodb.com Oleksandr Poliakov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: