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

Custom Serializers in $group

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: 2.0
    • Component/s: Linq
    • None

      See stackoverflow for a good writeup: mongodb-2-0-aggregation-with-custom-serialization.

      Essentially, g.Sum(x => x.MyDecimalField) doesn't use the custom serializer of MyDecimalField for the result and instead uses the default decimal serializer.

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: