📅  最后修改于: 2022-03-11 14:48:47.397000             🧑  作者: Mango
Mapper.CreateMap()
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.CLIENTID))
.ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Bar.FirstOrDefault???))