Chapter 11. Mapping with AutoMapper
- Understanding and configuring AutoMapper
- Testing conventions
- Applying formatters to eliminate duplicative code
- Reducing markup to presentation only
- Ridding views of complexity
In the previous chapter, we discussed model binders and value providers—framework components we leverage to shape input. Now we’ll focus on shaping our output, the view models that drive our views. You saw in chapter 5 how a view model shaped to the screen enables clean, maintainable markup. A logical business object should reflect the business problem, and so on. The trouble is getting all these pieces—each one fit for its purpose—talking to each other, translating.
In the companion website to his book ...