📌  相关文章
📜  如何在自动映射器中映射嵌套列表 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:32.828000             🧑  作者: Mango

代码示例1
Mapper.CreateMap()
    .ForMember(s => s.Text, c => c.MapFrom(m => m.Name))
    .ForMember(s => s.ImagePath, c => c.MapFrom(m => m.ImageName))
    .ForMember(s => s.PageUIs, c => c.MapFrom(m => m.Pages));
Mapper.CreateMap();