Freigeben über


ASP.Net MVC V2 Preview 1 Released

ScottGu just posted details on all of the new features for ASP.Net MVC: https://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-preview-1-released.aspx

I haven't had much time to play with ASP.Net MVC lately as we are hard at work on Dev10 but there are some very cool looking features that I am excited to try out. First off, there is support for areas so that you can easily add functionality such as a blog or forum to your site, no tooling support yet though. Another feature that caught my eye was the improved scaffolding support. You can now specify an attribute, ScaffoldColumn, on a property and be able to control whether the Add View tool with generate markup for the property in your model. So if you were adding a view of type Product, you would apply ScaffoldColumn=false to the ID property if you did not want this to appear in the edit view. Cooler still is a ui hint attribute that allows you to specify the custom appearance of the scaffolding for a type. These templates are ascx files that live in convention based directories and can be completely customized. This is a nice hint of Dynamic Data creeping into ASP.Net MVC. All of these new features are making me want to start in on a new app building project to really get to know everything coming out the door. Stay tuned.