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

LINQ3: Combine Where followed by Any to a single Any in filter translator

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.0
    • None
    • LINQ3
    • None

    Description

      When translating the following expression to a filter:

      s.Where(x => p1(x)).Any(y => p2(y))
      

      first transform the expression to:

      s.Any(x => p1(x) && p2(x))
      

      before translating to a filter (because there is no translation for Where in filter language).

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: