Automapper忽略映射某字段的映射写法

Mapper.CreateMap<Source, Destination>()

   .ForMember(dest => dest.SomeValuefff, opt => opt.Ignore());
posted @ 2020-07-05 16:28  lishidefengchen  阅读(1955)  评论(0编辑  收藏  举报