From 768dbb4532e2d95127b2053a224cb8db22275f04 Mon Sep 17 00:00:00 2001 From: Wvader <34067397+wvader@users.noreply.github.com> Date: Sat, 11 Dec 2021 14:22:26 +0000 Subject: [PATCH] Release 1 --- src/MapTo/Extensions/CommonSource.cs | 2 +- test/TestConsoleApp/Data/FinanceTransactionReadDto.cs | 2 ++ test/TestConsoleApp/Data/User.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MapTo/Extensions/CommonSource.cs b/src/MapTo/Extensions/CommonSource.cs index 0689cba..2de8fa6 100644 --- a/src/MapTo/Extensions/CommonSource.cs +++ b/src/MapTo/Extensions/CommonSource.cs @@ -92,7 +92,7 @@ namespace MapTo.Extensions foreach(var prop in properties) { - if (prop.FullyQualifiedType.ToString() == property.FullyQualifiedType.ToString()) return true; + if (prop.Name == property.Name) return true; } return false; diff --git a/test/TestConsoleApp/Data/FinanceTransactionReadDto.cs b/test/TestConsoleApp/Data/FinanceTransactionReadDto.cs index 02e47b2..bfb5a24 100644 --- a/test/TestConsoleApp/Data/FinanceTransactionReadDto.cs +++ b/test/TestConsoleApp/Data/FinanceTransactionReadDto.cs @@ -16,5 +16,7 @@ namespace BlueWest.Data public double Quantity { get; } // Bought public double Fee { get; } public DateTime DateTime { get; } + + public string ReadData { get; } } } diff --git a/test/TestConsoleApp/Data/User.cs b/test/TestConsoleApp/Data/User.cs index 6bd9905..2a1bbd8 100644 --- a/test/TestConsoleApp/Data/User.cs +++ b/test/TestConsoleApp/Data/User.cs @@ -6,7 +6,7 @@ using MapTo; namespace BlueWest.Data { [MapFrom(typeof(UserUpdateDto))] - public partial struct User + public partial class User { public int Id { get; } public string Name { get; set; }