Can you show me the right way of Mapping if I have two similar classes with difference in one property.
// DatabaseCamper.Gender is string that holds either "M" or "F"
// ViewModelCamper.gender is enum of type Gender
I presume it should be like this:
Mapper.CreateMap<DatabaseCamper, ViewModelCamper>().ForMember(x => x.Gender, ...
Could you finish this snippet?
Thanks.
UPD. or let's add a bit of salt to it. What if I have a property in mapping Destination class (ViewModelCamper in this case) that I don't initially have in the Source class, and the value should be calculated?