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.
- is duplicated by
-
CSHARP-1329 Decimal trancation issuewhen running the aggegate
- Closed