From d6f5ad07b981e0410059b0d4c87113454ccd379b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Mon, 23 Oct 2023 15:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A420model=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E6=98=AF=E7=9A=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Elight.Entity/AuthManageProfile.cs | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Elight.Entity/AuthManageProfile.cs b/Elight.Entity/AuthManageProfile.cs index 1d38428..ea74648 100644 --- a/Elight.Entity/AuthManageProfile.cs +++ b/Elight.Entity/AuthManageProfile.cs @@ -13,21 +13,10 @@ namespace Elight.Entity { public AuthManageProfile() { - CreateMap().ReverseMap().ForAllMembers(opt => - { - opt.UseDestinationValue(); - opt.Condition((src, dest, srcm, destm) => srcm != null); - }); - CreateMap().ReverseMap().ForAllMembers(opt => - { - opt.UseDestinationValue(); - opt.Condition((src, dest, srcm, destm) => srcm != null); - }); - CreateMap().ReverseMap().ForAllMembers(opt => - { - opt.UseDestinationValue(); - opt.Condition((src, dest, srcm, destm) => srcm != null); - }); + CreateMap().ReverseMap(); + CreateMap().ReverseMap(); + CreateMap().ReverseMap(); + CreateMap().ReverseMap().ForAllMembers(opt => { opt.UseDestinationValue();