Updating ASP.Net MVC Frames for MVC2

With the release of MVC2, what are some noteworthy features included in the MVC Futures library update?

+4
source share
2 answers

There are two versions of MVC Futures that are next to RTM MVC 2. One version is for .NET 3.5; other goals of .NET 4. (.NET 4 is not a superset of .NET 3.5, you must include both of them in your application if you want the full range of functionality.) Download from http://aspnet.codeplex.com/releases/ view / 41742 .

A non-exhaustive list of functions (.NET 3.5+):

  • A diagnostic page that can help diagnose loading errors during runtime and build (see the documentation ).

  • New, more powerful model snapping and checking system . Detailed documentation and a tutorial are available at the above link.

  • Improved support for creating RESTful services (see Microsoft.Web.Mvc.Resources namespace).

  • Strongly typed ActionLink <T> () .

  • Many other filters and helpers such as Html.Serialize () (see blog post ), Html.Script (), etc.

  • Many providers of other values , such as JsonValueProviderFactory.

  • The ability to disable session state for individual controllers to increase parallelism on your site (see documentation ).

The ASP.NET 4-based MVC Futures version also includes:

  • The ability to have partial output caching , for example. caching the result of the RenderAction () separately from the rest of the page.

  • DynamicViewPage allows you to use real dynamic objects in ViewPage, somewhat more fully functional than the default ViewPage <dynamic>.

  • Ability to use DataAnnotations 4 attributes.

  • Remote validation , IClientValidatable (the ability of the validation attribute to provide its own client validation information) and the ability for custom non-DataAnnotations attributes to contribute to ModelMetadata information.

+11
source

Source: https://habr.com/ru/post/1308310/


All Articles