How I have configure automapper to map this:
class Source { Guid Id; double Price; }
To this:
class Destination { Guid Id; DestinationDifference Difference; }
class DestinationDifference { decimal Amount; }
How I have configure automapper to map this:
class Source { Guid Id; double Price; }
To this:
class Destination { Guid Id; DestinationDifference Difference; }
class DestinationDifference { decimal Amount; }
First: You should really read the FAQs on how to post a question and what information should be added. (No, I'm not the downvoter)
Here is an example how to get your mapping to work. Please note, that I've changed your classes a bit, because AutoMapper needs properties.
Classes: