Home  /  Questions  /  Question



70   95.9
Apr 15, 2011


ASP.NET MVC 3 - changes

Hello,

At the moment I don't have knowledge about MVC 3 with its new Razor View Engine, but I am enthusiastic about applying the Patterns in your "Patterns in Action" application to it.

Unfortunately, MVC 2 is used in your Patterns in Action application. If I'd like to use MVC 3 would the design of the ASP.NET MVC application be very different than your implementation?  If yes, will you update your product?



810   99.9
Apr 15, 2011

The list of changes from MVC 2 and MVC 3 is rather extensive. We're excited about working with it too. Here is the complete list.

• Extensible Scaffolding with MvcScaffold integration

• HTML 5 enabled project templates

• The Razor View Engine

• Support for Multiple View Engines

• Controller Improvements

• JavaScript and Ajax

• Model Validation Improvements

• Dependency Injection Improvements

• NuGet Integration

• Partial-Page Output Caching

• Granular Control over Request Validation

• Extensible "New Project" Dialog Box

• Template Scaffolding Improvements

• New Overloads for "Html.LabelFor" and "Html.LabelForModel"

• Sessionless Controller Support

• New "AdditionalMetadataAttribute" Class

• AccountController improvements

• New Intranet Project Template


These features will indeed change the way you write your code, The most affected seems to be the View part as represented by the new Razor View Engine.  The Scaffolding support is really nice.  From a pattern perspective the Dependency Injection Improvements may change some of the code, but probably not that much.

Looking at the overall.NET Web architecture the MVC 3 upgrade is primarily a change in the View (and Controller to some extent). Anything else, such as the Model, DTO's, Service Layer, Data Layer, etc are all unaffected.

We are working on updating the Design Pattern Framework with MVC 3 and the new Entity Framework 4.1. However, there is no official release date as of yet.

Hope this helps.
Dan

 2 comments
 
Hi Dan, The Patterns in Action 4 is great and I learned lot of things from that. But we really need MVC 3 in it. When can you update the Patterns in Action 4 with MVC 3. It's been almost 3 months now. Thanks. Muthu --- Muthu Xx  Jul 08, 2011
 
MVC4 is now here Dan. It has overtaken your plan for Design Pattern Framework with MVC3. I hope we will not wait until MVC5 will come out to see an "upgrade". --- Richard Tiong  Aug 23, 2012