From 4b139ec8b03930ae1f992f4f6673d53c9e61411a Mon Sep 17 00:00:00 2001 From: Rui Sousa Date: Mon, 6 Dec 2021 16:41:20 +0000 Subject: [PATCH] mods --- BlueWest.Data/BlueWest.Data.csproj | 4 ++-- BlueWest.Data/Data/FinanceTransactionReadDto.cs | 9 +++++++++ MapTo | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/BlueWest.Data/BlueWest.Data.csproj b/BlueWest.Data/BlueWest.Data.csproj index 1bfff06..f3ea988 100644 --- a/BlueWest.Data/BlueWest.Data.csproj +++ b/BlueWest.Data/BlueWest.Data.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 @@ -7,7 +7,7 @@ - + diff --git a/BlueWest.Data/Data/FinanceTransactionReadDto.cs b/BlueWest.Data/Data/FinanceTransactionReadDto.cs index 0b667ee..dfe57f0 100644 --- a/BlueWest.Data/Data/FinanceTransactionReadDto.cs +++ b/BlueWest.Data/Data/FinanceTransactionReadDto.cs @@ -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; } } } diff --git a/MapTo b/MapTo index e314387..eb32ef8 160000 --- a/MapTo +++ b/MapTo @@ -1 +1 @@ -Subproject commit e3143877729241799c8c578bc4efb062ace8ba00 +Subproject commit eb32ef8e94ec1eb8f49fcc207045456f256eabf1