修改映射测试
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-09-14 13:16:15 +08:00
parent c3daa75e0e
commit 7285a9d672
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,8 @@ namespace IRaCIS.Core.Application.Service
CreateMap<SetCriterionJoinJoinAnalysisCommand, EnrollReadingCriterion>().ReverseMap(); CreateMap<SetCriterionJoinJoinAnalysisCommand, EnrollReadingCriterion>().ReverseMap();
CreateMap<TestModel, TestModel2>(); CreateMap<TestModel, TestModel2>()
.ForAllMembers(opts => opts.Condition((src, dest, srcMember) => srcMember != null));
} }

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<!--<PropertyGroup> <PropertyGroup>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup>--> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
</PropertyGroup> </PropertyGroup>