From 45271df758c88f6135f4d98375916cab4677a8f0 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 18 Dec 2024 17:02:08 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B0,=20?= =?UTF-8?q?=D1=87=D1=82=D0=BE=D0=B1=D1=8B=20=D0=BD=D0=B0=20=D0=BC=D0=B0?= =?UTF-8?q?=D0=BF=D1=81=D1=82=D0=B5=D1=80=D0=B5=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=B0=D1=85=20=D0=BD=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BB=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DD.Persistence.Repository/DependencyInjection.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DD.Persistence.Repository/DependencyInjection.cs b/DD.Persistence.Repository/DependencyInjection.cs index 9077205..df15095 100644 --- a/DD.Persistence.Repository/DependencyInjection.cs +++ b/DD.Persistence.Repository/DependencyInjection.cs @@ -5,6 +5,7 @@ using DD.Persistence.Models; using DD.Persistence.Repositories; using DD.Persistence.Repository.Repositories; using DD.Persistence.Database.Entity; +using System.Reflection; namespace DD.Persistence.Repository; public static class DependencyInjection @@ -28,6 +29,10 @@ public static class DependencyInjection public static IServiceCollection AddInfrastructure(this IServiceCollection services) { + var typeAdapterConfig = TypeAdapterConfig.GlobalSettings; + typeAdapterConfig.RuleMap.Clear(); + typeAdapterConfig.Scan(Assembly.GetExecutingAssembly()); + MapsterSetup(); services.AddTransient, TimeSeriesDataRepository>();