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();