选择MVC 3或ASP.NET C# [英] which to select MVC 3 or ASP.NET C#

查看:53
本文介绍了选择MVC 3或ASP.NET C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要构建一个大型Web应用程序来访问Oracle数据库(插入,更新,选择)并显示一个水晶报表.

我有VS2010,我想建议用于构建此Web应用程序的项目类型. MVC3或ASP.NET C#.

谢谢.

Hi,
I need to build a big Web application to access an Oracle Database (insert, update, select) and show a crystal report.

I have VS2010 and I would like a suggestion about which project type to use for building this web app; MVC3 or ASP.NET C#.

Thank you.

推荐答案

如果您使用的是MVC 3,您仍将在ASP.NET上运行.

MVC是一个利用ASP.NET的框架,因此,借助(IMO)更好的视图引擎和更好的关注点分离,可以从已建立的平台中受益. Auth/Auth在ASP.NET中非常容易. [ ^ ],因此在MVC中也是如此.

MVC 3还提供了漂亮的Razor视图引擎.如果您不反对学习新语法,并且对MVC设计模式感到满意,那么我建议您使用MVC3.

如果您喜欢事件驱动的编程,并且想要免费"的视图状态管理,请使用ASP.NET(无MVC).

对于项目范围和可用的工具,我将选择MVC3.

干杯.
If you''re using MVC 3 you''ll still be running on ASP.NET.

MVC is a framework that leverages ASP.NET, so you get the benefits of the established platform with (IMO) a better view engine and better separation of concerns. Auth/Auth is very easy in ASP.NET.[^], and therefore in MVC as well.

MVC 3 also provides the Razor view engine, which is slick. If you''re not opposed to learning a new syntax and you''re comfortable with the MVC design pattern, I would recommend MVC 3.

If you prefer event-driven programming and want "free" viewstate management, go with ASP.NET sans MVC.

For the scope of the project and the tooling available, I''d choose MVC 3.

Cheers.


MVC 3仍然是ASP.NET.因此,从本质上来说,您的选择将是将MVC 3与ASP.NET一起使用还是将自定义ASP.NET代码推出.阅读MVC 3,看看这是否是您和您的团队想要前进的东西.

这是一篇已有2年历史的文章,讨论了使用ASP.NET MVC的优缺点.请记住,该文章现在可能已经过时,并且可能是针对较旧的ASP.NET MVC版本编写的:

http://www.ytechie.com/2008/10/aspnet-mvc- pros-and-cons.html [ ^ ]
MVC 3 is still ASP.NET. So essentially your choice would be whether you use MVC 3 with ASP.NET or roll your custom ASP.NET code out. Read up on MVC 3 and see if it''s the sort of thing you and your team want to move forward with.

Here''s a 2 year old article that discusses the pros and cons of using ASP.NET MVC. Keep in mind that the article may be outdated now and was probably written for an older ASP.NET MVC version:

http://www.ytechie.com/2008/10/aspnet-mvc-pros-and-cons.html[^]


这篇关于选择MVC 3或ASP.NET C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆