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

Test full support for enums in filters

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.19.0
    • Affects Version/s: 2.18.0
    • Component/s: LINQ3
    • Labels:
      None

      The following fails:

      var value = (E?)E.B;
      
      var queryable = collection
          .AsQueryable()
          .Where(x => x.E == value);
      

      Where the types are:

      private class C
      {
          public int Id { get; set; }
          public E E { get; set; }
      }
      
      private enum E { A, B }
      

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: