Chapter 11. Mapping with AutoMapper

 

This chapter covers
  • 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 ...

Get ASP.NET MVC 4 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.