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

Verify that all calls to Translate or TranslateEnumerable are correct

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.2.0
    • Affects Version/s: 3.1.0
    • Component/s: Linq
    • None
    • Dotnet Drivers
    • Not Needed

      For types like `IGrouping` we sometimes want to treat the type as a document with fields and sometimes as an `IEnumerable`. If we want to treat it as an `IEnumerable` we need to unwrap the embedded array.

      Only the caller knows whether the type should be treated as a document with fields or an `IEnumerable`, and it indicates that by calling either `Translate` or `TranslateEnumerable`.

      There are a few places we are calling the wrong method. This ticket is to find all the calls and verify that the correct method is being called.

            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: