I have a customer class & I'd like to have the customer emails field display in CSV format for an admin list view. When the edit view shows, I'd like to have the view show emails in a textbox split with a newline character feed.
I don't want to have 2 different classes for each view just use the same, with the first using IEnumerable<T>
to display the list. My class is quite large and I don't want to have 2 separate view classes to manage.
The ideal goal would be to have 2 different AutoMapper mappings 1 for each different mapping scenario rather than just being limited to the the one created using CreateMap at bootstrap stage. How do I achieve this? Effectively I'd like to switch the mapping strategy depending on where I am in the code.