To extend (What to do when model is exactly the same as viewmodel with a specific inquiry to coding practice....
...in other words, what is best mapping solution when a domain model contain the same properties as the needed viewmodel?
For whatever reason this happens more frequently than I expect, maybe because the domain models tend to have several navigation properties. Nearly 'it all' ends up in the view.
Is there an automapper shortcut, inheritance strategy or maybe a Linq expression to perform the direct mapping?
I've experimented a little with inheritance which gets weird quickly and the Automapper's 'Mapping by naming convention' that has serious limitations especially for complex types.
Except meeting the need for data annotations, I'm leaning towards using the domain model in the views and performing validation in the view. So the lack of a mapping method is pushing me towards coding in an 'anti-pattern' that I don't really want.