Hanselminutes on 9-发布ASP.NET MVC 2 Preview 1

I was up in Redmond this week and stopped by to visit my Video Portal in Phil's Office. I wanted to see where I virtually sit.

我本周在雷德蒙德(Redmond)上班,然后停下来参观我在Phil办公室的视频门户。 我想看看实际上坐在哪里。

While I was there, Phil gave me/us/you a tour of ASP.NET MVC 2 Preview 1.

在我在那里的时候, Phil给了我(我们)一个ASP.NET MVC 2 Preview 1游览

Be sure to read ScottGu's post on ASP.NET MVC 2. The best point:

确保阅读ScottGu在ASP.NET MVC 2上的文章。 最佳点:

  • Today’s preview works with .NET 3.5 SP1 and VS 2008, and can be installed side-by-side on the same machine as ASP.NET MVC 1.0 (meaning they don’t conflict and your existing ASP.NET MVC 1.0 projects will not be impacted if you install it).

    今天的预览版适用于.NET 3.5 SP1和VS 2008,并且可以与ASP.NET MVC 1.0并排安装在同一台计算机上(这意味着它们不会冲突,并且现有的ASP.NET MVC 1.0项目不会如果您安装了,则会受到影响)。

Quoting from the ASP.NET MVC Roadmap, the theme for ASP.NET MVC 2 is "Improved Productivity and Enterprise Ready."

引用ASP.NET MVC路线图,ASP.NET MVC 2的主题是“提高生产率和企业就绪”。

ASP.NET MVC 2功能 (ASP.NET MVC 2 Features)

预览1-8月初(Preview 1 - Early August)
  • Templated Helpers - allow you to automatically associate edit and display elements with data types. For example, a date picker UI element can be automatically rendered every time data of type System.DateTime is used. This is similar to Field Templates in ASP.NET Dynamic Data.

    模板化助手-允许您自动将编辑和显示元素与数据类型相关联。 例如,每次使用System.DateTime类型的数据时,都可以自动呈现日期选择器UI元素。 这类似于ASP.NET动态数据中的字段模板。

  • Areas - provide a means of dividing a large web application into multiple projects, each of which can be developed in relative isolation. This helps developers manage the complexity of building a large application by providing a way to group related controllers and views.

    区域-提供一种将大型Web应用程序划分为多个项目的方法,每个项目都可以相对隔离地进行开发。 通过提供一种将相关的控制器和视图进行分组的方法,这可以帮助开发人员管理构建大型应用程序的复杂性。

  • Support for Data Annotations - Data Annotations enable attaching validation logic in a central location via metadata attributes applied directly to a model class. First introduced in ASP.NET Dynamic Data, these attributes are now integrated into the default model binder and provide a metadata driven means to validating user input.

    支持数据注释-数据注释可通过直接应用于模型类的元数据属性将验证逻辑附加到中央位置。 这些属性首先在ASP.NET动态数据中引入,现在已集成到默认模型绑定程序中,并提供了元数据驱动的方法来验证用户输入。

预览版2及更高版本 (Preview 2 and beyond)
  • Client Validation - builds on top of the Templated Helpers and Data Annotations work done in Preview 1 to provide client-side validation based on the model's validation attributes. This provides for a more responsive experience for users filling out a form with validation.

    客户端验证-在预览版1中的模板化帮助器和数据注释工作的基础上构建,以基于模型的验证属性提供客户端验证。 这为用户填写验证表提供了更快速的响应体验。

  • Strongly-typed input helpers – allow generating form input fields using code expressions against the model. This allows the helpers to take advantage of Data Annotations attributes applied to the model and reduces errors caused by lack of strong typing such as typos.

    强类型输入助手–允许使用针对模型的代码表达式生成表单输入字段。 这使助手可以利用应用于模型的数据注释属性,并减少由于缺少强类型(如拼写错误)而导致的错误。

  • Strongly-typed link helpers – allow developers to take advantage of Intellisense support (due to the strong typing) to discover which controllers and actions are available for linking.

    强类型链接助手–使开发人员可以利用Intellisense支持(由于强类型)来发现可用于链接的控制器和操作。

  • Asynchronous Controller Actions - provides a programming model for writing actions that can call external resources without blocking a thread. This can increase the scalability of a site that needs to interact with web services and other external services.

    异步控制器动作-提供一种编程模型,用于编写可以调用外部资源而不会阻塞线程的动作。 这可以增加需要与Web服务和其他外部服务进行交互的站点的可伸缩性。

  • Areas - continued refining of the Areas feature, enabling a single project approach for developers who wish to organize their application without requiring multiple projects.

    区域-继续完善“区域”功能,为希望组织其应用程序而不需要多个项目的开发人员提供了一种项目方法。

  • Other Improvements - continue to fix known issues carried over from ASP.NET MVC 1.0 as well as ASP.NET MVC 2 Preview 1. Also including API improvements based on user feedback along with minor new features.

    其他改进-继续解决从ASP.NET MVC 1.0和ASP.NET MVC 2 Preview 1遗留的已知问题,还包括基于用户反馈的API改进以及一些小的新功能。

There's lots of cool stuff (release notes are here) and in this video Phil shows off Templated Helpers. There's a walkthrough of Templated Helpers in the Pre-Release Documentation as well.

有很多很酷的东西(发布说明在这里),在这个视频中,Phil展示了Templated Helpers。 发行前文档中也模板帮助器的演练。

Remember, it's a preview, so there's still time to give feedback. Blog about it, complain in the forums, or bug us on Twitter.

请记住,这是一个预览,因此仍有时间提供反馈。 对此发表博客,在论坛中投诉或在Twitter上给我们打扰

I hope you enjoy the video!

希望您喜欢这个视频

Related Links

相关链接

翻译自: https://www.hanselman.com/blog/hanselminutes-on-9-aspnet-mvc-2-preview-1-released

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值