O'Reilly logo

ASP.NET MVC 4 in Action: Revised edition of ASP.NET MVC 2 in Action by Foreword by Phil Haack, Jeffrey Palermo, Jimmy Bogard, Eric Hexter, Matthew Hinze, and Jeremy Skinner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required