using AutoMapper; using Elight.Entity.APPDto.Lawyer; using Elight.Entity.AppMode.Lawyer; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Elight.Entity { public class AuthManageProfile : Profile { public AuthManageProfile() { this.CreateCusMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); //CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); //用户管理 CreateMap(); } } public static class AutoMapperProFileExtension { public static void CreateCusMap(this Profile profile) { profile.CreateMap().ForAllMembers(opt => { opt.UseDestinationValue(); opt.Condition((s, e, r, t) => { if (r == null) { return false; } else { return true; } }); }); } } }