The line of code CreateMap<SaveStaffFileDto, StaffFile>().ForMember(dest => dest.Job.Id, opt => opt.MapFrom(src => $"{src.Id}{src.JobId}")); is used to map the properties of the SaveStaffFileDto class to the properties of the StaffFile class.

In this case, it is mapping the JobId property of the SaveStaffFileDto class to the Id property of the Job property of the StaffFile class. The mapping is done by concatenating the Id property of the SaveStaffFileDto class with the JobId property of the SaveStaffFileDto class


原文地址: http://www.cveoy.top/t/topic/h15c 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录