WebMatrix ASP.NET Web Pages vs ASP.NET MVC 3

烂漫一生 提交于 2019-12-24 03:03:32

问题


I've looked at WebMatrix 2 and it seems simple and fun to play with.

I play mainly with ASP.NET MVC 3 in C# with VS2010 Premium.

I'd like to know what's the pros and cons of using ASP.NET Web Pages, against using ASP.NET MVC 3.

And I'd like to know what's the pros and cons of WebMatrix too.

Thanks!


回答1:


Web Pages is a much lighter-weight development model than MVC. You would use it when testability and code separation is not needed - proof of concept stuff perhaps, or just a relatively simple site.

Web Pages uses the Web Site model as opposed to the Web Application model. No precompilation. WebMatrix only supports that model so it's not much use for MVC, but for Web Pages sites, it opens up in a fraction of the time that it takes for Visual Studio to wake from its slumber.



来源:https://stackoverflow.com/questions/8157394/webmatrix-asp-net-web-pages-vs-asp-net-mvc-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!