From 2cd2a3868ce64b1e99bd373b50d4be6241692c33 Mon Sep 17 00:00:00 2001 From: CodeLiturgy Date: Thu, 18 Aug 2022 15:13:23 +0100 Subject: [PATCH] Compiling state (replace SingleOrDefault by firstOrDefault) --- BlueWest.Data/Finance/Currency/TestData.cs | 3 ++- BlueWest.Data/User/User.cs | 2 ++ BlueWest.Data/User/UserUpdateDto.cs | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BlueWest.Data/Finance/Currency/TestData.cs b/BlueWest.Data/Finance/Currency/TestData.cs index bef54d9..532f345 100644 --- a/BlueWest.Data/Finance/Currency/TestData.cs +++ b/BlueWest.Data/Finance/Currency/TestData.cs @@ -2,5 +2,6 @@ namespace BlueWest.Data; public class TestData { - + public int Id { get; set; } + public string Name { get; set; } } \ No newline at end of file diff --git a/BlueWest.Data/User/User.cs b/BlueWest.Data/User/User.cs index 48b3297..23d5a04 100644 --- a/BlueWest.Data/User/User.cs +++ b/BlueWest.Data/User/User.cs @@ -5,7 +5,9 @@ using MapTo; namespace BlueWest.Data { [MapFrom( typeof(UserUpdateDto))] + /* [UseUpdate] + */ public partial class User { public TimeSpan Id { get; } = TimeSpan.Zero; diff --git a/BlueWest.Data/User/UserUpdateDto.cs b/BlueWest.Data/User/UserUpdateDto.cs index 3b78a00..4949ee7 100644 --- a/BlueWest.Data/User/UserUpdateDto.cs +++ b/BlueWest.Data/User/UserUpdateDto.cs @@ -2,7 +2,6 @@ namespace BlueWest.Data { - [UseUpdate] [MapFrom(typeof(User))] public partial class UserUpdateDto