WebMatrix ASP.NET 网页与 ASP.NET MVC 3
我研究过 WebMatrix 2,它看起来简单又有趣。
我主要使用 VS2010 Premium 的 C# 中的 ASP.NET MVC 3。
我想知道使用 ASP.NET 网页与使用 ASP.NET MVC 3 相比有何优缺点。
我也想知道 WebMatrix 的优缺点是什么。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Web Pages 是一种比 MVC 轻量级的开发模型。当不需要可测试性和代码分离时,您可以使用它 - 也许是概念验证的东西,或者只是一个相对简单的网站。
网页使用网站模型而不是 Web 应用程序模型。没有预编译。 WebMatrix 仅支持该模型,因此它对于 MVC 没有多大用处,但对于网页站点来说,它的打开时间只是 Visual Studio 从休眠中唤醒所需时间的一小部分。
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.