The CreateMap method creates a mapping between SaveStaffFileDto and StaffFile types. It includes all members from the source object and maps the JobId property to the destination object.

The ForMember method is used to customize the mapping for the Job property. It maps the JobId property from the source object to the Id property of a new Basic_JobDto object in the destination object.

CreateMapSaveStaffFileDto StaffFileIncludeMemberssource = sourceJobId ForMemberdest = destJob opt = optMapFromsrc = new Basic_JobDto Id = srcJobId;

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

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