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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4
    • Component/s: Linq
    • Environment:
      Windows 10 (stable), mongodb 3.4, driver 2.4.1, .NET core

      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.

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

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            boniface Vorobjev Valery
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: