WebMatrix ASP.NET 网页与 ASP.NET MVC 3

发布于 2024-12-16 12:06:00 字数 183 浏览 3 评论 0原文

我研究过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哎呦我呸! 2024-12-23 12:06:00

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文