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

LINQ3: Translate F[n] where F is a List<T> to filter field

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • Labels:
      None

      Translate:

      collection.Where(x => x.F[n] == c)
      

      to:

      { $match : { "F.n" : c } }
      

      where `x.F` is of type `List<T>` and `x.F[n]` is represented as a MethodCallExpression using the special method name `get_Item` and `n` is a constant integer and `c` is a constant of type `T`.

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

              Created:
              Updated:
              Resolved: