diff --git a/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj b/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj index 079a6b1..9a5be2b 100644 --- a/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj +++ b/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj @@ -1,21 +1,20 @@ - - net8.0 - enable - enable - + + net8.0 + enable + enable + - - - - - - - - - - - + + + + + + + + + + diff --git a/src/Managing.Infrastructure.Database/MongoDb/Collections/BacktestDto.cs b/src/Managing.Infrastructure.Database/MongoDb/Collections/BacktestDto.cs index a18d1f7..74cf783 100644 --- a/src/Managing.Infrastructure.Database/MongoDb/Collections/BacktestDto.cs +++ b/src/Managing.Infrastructure.Database/MongoDb/Collections/BacktestDto.cs @@ -1,12 +1,15 @@ using Exilion.TradingAtomics; using Managing.Infrastructure.Databases.MongoDb.Attributes; using Managing.Infrastructure.Databases.MongoDb.Configurations; +using MongoDB.Bson; +using MongoDB.Bson.Serialization.Attributes; namespace Managing.Infrastructure.Databases.MongoDb.Collections { [BsonCollection("Backtests")] public class BacktestDto : Document { + [BsonRepresentation(BsonType.Decimal128)] public decimal FinalPnl { get; set; } public int WinRate { get; set; }