[CSHARP-1321] Custom Serializers in $group Created: 16/Jun/15  Updated: 20/Jan/16  Resolved: 22/Jun/15

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 2.0
Fix Version/s: 2.1

Type: Bug Priority: Major - P3
Reporter: Craig Wilson Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CSHARP-1329 Decimal trancation issuewhen running ... Closed

 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.



 Comments   
Comment by Githook User [ 22/Jun/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1321: fixed bug with poorly choosing a serializer for aggregated fields.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/6d22a7e88daa107e9461a2fbae55587273ccfaed

Generated at Wed Feb 07 21:39:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.