From a73a511fc9a3a28caa14cf76c62a50d29f41cd65 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 18 Dec 2024 16:35:22 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20MapsterSetup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DD.Persistence.Repository/DependencyInjection.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DD.Persistence.Repository/DependencyInjection.cs b/DD.Persistence.Repository/DependencyInjection.cs index 3e60e1e..f960b7c 100644 --- a/DD.Persistence.Repository/DependencyInjection.cs +++ b/DD.Persistence.Repository/DependencyInjection.cs @@ -11,6 +11,10 @@ public static class DependencyInjection { public static void MapsterSetup() { + TypeAdapterConfig.GlobalSettings.Default.Config + .ForType() + .Ignore(dest => dest.System, dest => dest.SystemId); + TypeAdapterConfig.GlobalSettings.Default.Config .ForType() .Map(dest => dest.Value, src => new DataWithWellDepthAndSectionDto() @@ -21,11 +25,6 @@ public static class DependencyInjection Value = src.Value, Id = src.Id }); - - TypeAdapterConfig.GlobalSettings.Default.Config - .ForType() - .Ignore(dest => dest.System, dest => dest.SystemId); - } public static IServiceCollection AddInfrastructure(this IServiceCollection services)