AutoMapper should be called AwesomeMapper. It does a simple job simply so I can avoid mapping tedium. It will map between a viewmodel and a DTO in a couple lines of code when the property names are the same and takes lambdas when the names are different or any conversion is involved.
The only thing I could ask for so far is that it could support simple conversions like between decimal and double.
One hint is to set the target to an interface if your target has more properties than your source. Otherwise you’d have to write an ignore clause for each unmapped field. Its still quick and easy and the interface documents your mapping in a simple way.
No comments yet.