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

Custom Serializers in $group

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1
    • 2.0
    • Linq
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: