[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: |
|
||||||||
| 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: |