Поправлен MapsterSetup
Some checks failed
Run Tests / run_tests (push) Failing after 2m36s

This commit is contained in:
Olga Nemt 2024-12-18 16:35:22 +05:00
parent 38d2099a81
commit a73a511fc9

View File

@ -11,6 +11,10 @@ public static class DependencyInjection
{
public static void MapsterSetup()
{
TypeAdapterConfig.GlobalSettings.Default.Config
.ForType<TechMessageDto, TechMessage>()
.Ignore(dest => dest.System, dest => dest.SystemId);
TypeAdapterConfig.GlobalSettings.Default.Config
.ForType<ChangeLog, ChangeLogDto>()
.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<TechMessageDto, TechMessage>()
.Ignore(dest => dest.System, dest => dest.SystemId);
}
public static IServiceCollection AddInfrastructure(this IServiceCollection services)