When attempting to serialize System.Decimal as BsonType.Decimal128
[BsonRepresentation(BsonType.Decimal128)] public decimal Amount { get; set; }
An EndOfStreamException is thrown:
MongoDB.Driver.MongoConnectionException: An exception occurred while receiving a message from the server. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
- is related to
-
SERVER-27317 Inserting a document with a Decimal128 value when featureCompatibilityVersion is 3.2 results in a closed socket
- Closed