Skip to content

Commit 76bb2e2

Browse files
committed
BugFix use explicit decimal mapping
1 parent 517b975 commit 76bb2e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Domain/Product.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ public class Product
99

1010
[BsonElement("Name")] public required string Name { get; set; }
1111

12-
[BsonElement("Price")] public required decimal Price { get; set; }
12+
[BsonElement("Price"), BsonRepresentation(BsonType.Decimal128)]
13+
public required decimal Price { get; set; }
1314

1415
[BsonElement("Quantity")] public required int Quantity { get; set; }
1516

0 commit comments

Comments
 (0)