AutoMapper Exclude Fields

后端 未结 1 1277
攒了一身酷
攒了一身酷 2021-02-12 06:36

I\'m trying to map one object to another but the object is quite complex. During development, I\'d like the ability to either exclude a bunch of fields and get to them one by on

相关标签:
1条回答
  • 2021-02-12 07:05
    .ForMember(dto => dto.field1, opt => opt.Ignore());
    
    0 讨论(0)
提交回复
热议问题