AutoMapper How To Map Object A To Object B Differently Depending On Context
- by IanT8
Calling all AutoMapper gurus!
I'd like to be able to map object A to object B differently depending on context at runtime. In particular, I'd like to ignore certain properties in one mapping case, and have all properties mapped in another case.
What I'm experiencing is that Mapper.CreateMap can be called successfully in the different mapping…