LINQ queries don't work with fields/properties of type short (Int16)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.9
    • Affects Version/s: 1.6.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      To reproduce:

      public class C
      {
          public int _id;
          public short s;
      }
      
      var query =
          from x in collection.AsQueryable<C>()
          where x.s == 2
          select x;
      

      which results in the following exception:

      Unsupported where clause: ((Int32)x.s == 2)
      

              Assignee:
              Sridhar Nanjundeswaran (Inactive)
              Reporter:
              Robert Stam
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: