Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1885

Don't cast nullable types (int?, sbyte?, uint? ..)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Gone away
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: Linq
    • Environment:
      Windows 10 (stable), mongodb 3.4, driver 2.4.1, .NET core
    • Sprint:
      C# Sprint 48 02/10/2017, C# Sprint 49, C# Sprint 50

      Description

      If class contains nullable property (example sbyte?) the query does not work!!! For Example: I have class with property unit.room_count (sbyte?). The final query should look as follows ...unit.room_count:

      {...}

      but query look as room_count:

      {..}

      .

      In attache contains the correct version of the query. Bug1.png then room_count as sbyte?. Success.png then room_count as sbyte.

        Attachments

        1. bug1.png
          bug1.png
          7 kB
        2. success.png
          success.png
          6 kB

          Issue Links

            Activity

              People

              Assignee:
              rstam Robert Stam
              Reporter:
              boniface Vorobjev Valery
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: