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

LINQ Is predicate does not work for properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.6
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: