This commit is contained in:
Rui Sousa 2021-12-06 16:41:20 +00:00
parent 034e6727c3
commit 4b139ec8b0
3 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MapTo" Version="0.8.3-g4d73897b4e" />
<PackageReference Include="MapTo" Version="0.8.4-ge314387772" />
<PackageReference Include="MessagePack" Version="2.3.85" />
<PackageReference Include="Newtonsoft.Json" Version="6.0.4" />
</ItemGroup>

View File

@ -6,7 +6,16 @@ using MapTo;
namespace BlueWest.Data
{
[AAttribute(typeof(FinanceTransaction))]
[MapFrom(typeof(FinanceTransaction))]
public partial class FinanceTransactionReadDto
{
public int Id { get; set; }
public int UserId { get; set; }
public FinanceTransactionType FinanceTransactionType { get; }
public FinanceSymbol FinanceSymbol { get; }
public double Amount { get; } // To Buy
public double Quantity { get; } // Bought
public double Fee { get; }
public DateTime DateTime { get; }
}
}

2
MapTo

@ -1 +1 @@
Subproject commit e3143877729241799c8c578bc4efb062ace8ba00
Subproject commit eb32ef8e94ec1eb8f49fcc207045456f256eabf1