Replacement for Automapper's ForAllOtherMembers()

Viewed 2714

ForAllOtherMembers extension method was removed from Automapper 11 I use it to ignore conventional mappings for properties other than the one mentioned before like this

ForAllOtherMembers(opt=>opt.ignore())

How to do this in Automapper 11 ?

1 Answers

You can set this on the CreateMap call:

CreateMap<TSource, TDest>(MemberList.None)
Related