LINQ queries don't work with fields/properties of type byte enum

XMLWordPrintableJSON

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

      To reproduce:

      enum Enum1:byte
      {
      E1,
      E2
      }
      public class C
      {
      public int _id;
      public Enum1 e;
      }

      var query =
      from x in collection.AsQueryable<C>()
      where x.e == Enum1.E1
      select x;
      which results in the following exception:
      1
      Unsupported where clause: ((Int32)x.e == 0)

            Assignee:
            Unassigned
            Reporter:
            zephuros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: