From 85d1930730b435414bdc9d16daf90805aa09e36c Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 12 Sep 2024 10:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=88=AA=E5=B1=9E?= =?UTF-8?q?=E6=80=A7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Reading/_MapConfig.cs | 3 ++- IRaCIS.Core.Domain/BaseModel/Entity.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs index 1cdb45816..1800d7f05 100644 --- a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs @@ -238,7 +238,8 @@ namespace IRaCIS.Core.Application.Service CreateMap() .ForMember(dest => dest.ReadingQuestionTrialList, opt => opt.Ignore()) - .ForMember(d => d.ReadingQuestionCriterionSystemId, u => u.MapFrom(s => s.Id)); ; + .ForMember(dest => dest.CreateUser, opt => opt.Ignore()) + .ForMember(d => d.ReadingQuestionCriterionSystemId, u => u.MapFrom(s => s.Id)); CreateMap(); diff --git a/IRaCIS.Core.Domain/BaseModel/Entity.cs b/IRaCIS.Core.Domain/BaseModel/Entity.cs index 854414413..ce7dfc8c8 100644 --- a/IRaCIS.Core.Domain/BaseModel/Entity.cs +++ b/IRaCIS.Core.Domain/BaseModel/Entity.cs @@ -71,7 +71,7 @@ namespace IRaCIS.Core.Domain.Models [ForeignKey("CreateUserId")] [JsonIgnore] - public User CreateUser { get; set; } + public virtual User CreateUser { get; set; } } public abstract class BaseAddDeleteAuditEntity : Entity, IAuditAdd, ISoftDelete