ASP.Net MVC期货刷新MVC2 [英] ASP.Net MVC Futures Refresh For MVC2
问题描述
随着MVC2的发布,包括在MVC期货库的更新有什么值得关注的特点?
With the release of MVC2, what noteworthy features are included in the refresh of the MVC Futures library?
推荐答案
有MVC期货的两个版本坐一起MVC 2 RTM。一个版本面向.NET 3.5;其他目标.NET 4(在.NET 4的版本是不是在.NET 3.5版本的超集;如果你想要的功能,整个范围内,你必须包括他们在您的应用程序。)从的 HTTP://aspnet.$c$cplex.com/releases/view/41742
There are two versions of MVC Futures that sit alongside MVC 2 RTM. One version targets .NET 3.5; the other targets .NET 4. (The .NET 4 version is not a superset of the .NET 3.5 version; you must include both of them in your application if you want the entire range of functionality.) Download from http://aspnet.codeplex.com/releases/view/41742.
一个非详尽的功能列表(.NET 3.5 +):
A non-exhaustive feature list (.NET 3.5+):
-
A 诊断页,可以帮助诊断运行和装配加载错误(见的文档)。
A diagnostics page which can help diagnose runtime and assembly loading errors (see documentation).
一个新的更强大的模型绑定和验证系统。详细的文档和教程,可在上面的链接。
A new, more powerful model binding and validation system. Detailed documentation and a tutorial are available at the above link.
改进了对建设支持的 RESTful服务(见Microsoft.Web.Mvc.Resources命名空间)。
Improved support for building RESTful services (see the Microsoft.Web.Mvc.Resources namespace).
强类型的 ActionLink的< T>()
的其他过滤器和佣工,如Html.Serialize()A摆(见的博客文章),Html.Script()等。
A slew of other filters and helpers, such as Html.Serialize() (see blog post), Html.Script(), etc.
其他值提供,如JsonValueProviderFactory。的回转
A slew of other value providers, such as JsonValueProviderFactory.
的能力为关闭会话状态作为单个控制器来增加并行在你的网站上(见的文档)。
The ability to turn off Session State for individual controllers to increase parallelism in your site (see documentation).
这是针对ASP.NET 4 MVC期货的版本还包括:
The version of MVC Futures that targets ASP.NET 4 additionally includes:
-
的能力有部分输出缓存,例如从页面的其余部分进行缓存的RenderAction(的结果)分开。
The ability to have partial output caching, e.g. caching the result of a RenderAction() separately from the rest of the page.
DynamicViewPage 可让您在您的ViewPage使用真正的动态物体,有些功能更完备的比默认的ViewPage<动态方式>
DynamicViewPage allows you to use real dynamic objects in your ViewPage, somewhat more full-featured than the default ViewPage<dynamic>.
的能力,使用 DataAnnotations 4个属性
远程验证 IClientValidatable (验证的能力属性来提供自己的客户端验证信息),并为能力定做非DataAnnotations属性有助于ModelMetadata信息。
Remote validation, IClientValidatable (the ability of a validation attribute to supply its own client validation info), and the ability for custom non-DataAnnotations attributes to contribute to ModelMetadata information.
这篇关于ASP.Net MVC期货刷新MVC2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!