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

Add targetSerializer parameter to Translate methods

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

      Currently when our LINQ provider translates an Expression it does not know where that result will be used, so sometimes the result is serialized differently than what the target use expects.

      This could be supported by having the caller of `Translate` pass in a `targetSerializer` that describes how the caller needs the result to be serialized. The caller could pass `null` for `targetSerializer` if it doesn't care.

      CSHARP-5435 is one example of this, where `Update.Set` needs the results returned by the translated Expression to match the way the field being set is serialized. But this is just one case, there will be others.

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

              Created:
              Updated: