问题
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