ASP.NET MVC还会使用aspx,但是它没有viewstate,没有postback,所以它在这里只是个模板引擎.这和Castle的Monorail项目是一样的,只是Monorail的非强类型的PropertyBag以及没有Intellisense的模板编辑。Castle项目的首页上的对ASP.NET MVC作出了回应。
Scott Guthrie在ALT.NET会议中展示了ASP.NET MVC Framework,它的CTP版本将于今年年底放出。
这个框架将支持以下特性:
- 为Controller提供原生的TDD模型支持
- 支持ASPX作为一种视图引擎(没有ViewState和Postback)
- 提供接口以使用其他的视图引擎,如MonoRail
- 提供对Controller对象生成的IoC支持和依赖注入支持
- 完全支持对URL和导航的控制
- 整个框架的模块都可以插拔(pluggable )
- 关注分离(Separation of concerns)
- 与ASP.NET良好的集成
- 同时支持静态和动态语言
在Scott Hanselman的这个博客贴子里,你能找到Scott Guthrie最近在ALT.NET大会上做的MVC框架示范的录像 http://www.hanselman.com/blog/ScottGuMVCPresentationAndScottHaScreencastFromALTNETConference.aspx
这里是这个录像的网址 (需要Silverlight):
http://www.hanselman.com/silverlight/ScottGuAtAltNetConf
如果你无法使用Silverlight,那么用这个直接的录像链接 (Scott Hanselman警告说,这些链接也许会有变动,所以最好通过他上面的博客贴子来访问这些链接):
http://download.microsoft.com/download/f/0/8/f0830f07-44db-4eea-ace3-8865856c8d65/ScottGuOnMVCatALTNET.wmv
同时,在Hanselman的贴子里,还有一个他做的MVC+IronPython示范(C# Model,IronPython Controller和View,以及一个IronRuby视图引擎!)的录像
http://www.hanselman.com/silverlight/ScottHaAtAltNetConf
ASP.NET MVC还会使用aspx,但是它没有viewstate,没有postback,所以它在这里只是个模板引擎,并不那么邪恶。而且ms还开放了接口,能让Castle这样的第三方产品结合进来。Castle Team也表态,MS的MVC推出后,Castle部分的项目将会与其整合:
微软推出MVC框架之后MonoRail将何去何从
Castle项目的首页上的对ASP.NET MVC的回应声明如下:
Regarding the Microsoft MVC
To The .Net Community,
You are probably wondering how the recently announced Microsoft MVC project will compete with Castle's MonoRail.
We think that any attempt to offer more productive tools, better testability and better separation of concerns is valuable, no matter who is the author. We are certainly pleased to see that Microsoft is delivering something that allows a more agile and productive type of web software development.
We also believe that MonoRail has been providing the same thing for the past two and half years, and will continue to do so. We're grateful that MS has chosen to offer integration points for Monorail and the Castle stack and as soon as it's available we will be working to integrate it with the rest of our projects.
Is MS' MVC better? Worse? Only once we have used both will we be able to tell.
Yours sincerely,
The Castle Project PMC
相关链接:
http://blog.joycode.com/saucer/archive/2007/10/08/109191.aspxhttp://blog.joycode.com/saucer/archive/2007/10/09/109258.aspx
http://www.castleproject.org/
http://geekswithblogs.net/AzamSharp/archive/2008/01/29/119070.aspx
http://geekswithblogs.net/AzamSharp/archive/2008/01/30/119105.aspx