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

Exception on any arithmetic operation in projection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • None

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:

              PagerDuty