How to skip the mapping between properties of a source and a target object in AutoMapper
As I did in my previous article, I focus again on the AutoMapper framework.
When I map one object to another, I often deal with a destination object that contains LESS properties than the source object. If I take no action, an exception is going to be thrown. For that we will have to declare the skipped properties by using the DoNotValidate method when we define the mapping (CreateMap) between the two objects:
Read the complete article