The Model-View-Controller pattern—universally known as MVC—provides a stable, testable approach to web application development by separating the major functions—or concerns—of an application into independently defined roles.
ASP.NET MVC in Action is a comprehensive guide to MVC-based development using this powerful framework. It offers a clearly-written introduction both to the ASP.NET MVC Framework and to the MVC approach. The focus is on creating real, maintainable web applications—so don't expect toy examples and short snippets.
Since I wrote the foreword to the first edition of this book, a lot has happened with
ASP.NET MVC. In 2011, Microsoft released ASP.NET MVC...twice. The first time
included lots of great improvements to the framework, but one of the most noticeable
improvements was the new Razor view engine. Razor removes all the syntactic cruft
involved in writing views via a streamlined clean syntax. More importantly, it’s very
flexible and can be used outside of ASP.NET.
In this tutorial, you learn how to build model classes and perform database access by taking advantage of Microsoft LINQ to SQL In this tutorial, we build a basic Movie database application. We start by creating the Movie database application in the fastest and easiest way possible. We perform all of our data access directly from our controller actions. Next, you learn how to use the Repository pattern. Using the Repository pattern requires a little more work. However, the advantage of adopting this pattern is that it enables you to build applications that are adaptable to change and can...