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

LINQ Is predicate does not work for properties

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.7
    • 1.5, 1.6
    • None
    • Minor Change

    Description

      The LINQ driver's type tests when used on a member property in a predicate do not include the member name.

      e.g.

      from t in collection.AsQueryable() where t.Prop is B select t

      translates to

      { "_t" : "B" } 

      instead of

      { "Prop._t" : "B" } 

      A Similar problem exists for type comparisons using typeof.

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            andy clapham Andy Clapham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: