简体   繁体   English

关于从ASP.NET 2.0到ASP.NET 3.5 MVC的差异的问题

[英]Questions on differences from ASP.NET 2.0 to ASP.NET 3.5 MVC

We are moving from regular 2.0 webforms with no testing to TDD MVC 我们正在从没有测试的常规2.0 webforms转向TDD MVC

I'm looking to find out all the requirements for making the jump from 2.0 to 3.5 MVC. 我正在寻找从2.0到3.5 MVC跳跃的所有要求。

  • Does SQL Server 2000 work with .net 3.5? SQL Server 2000是否适用于.net 3.5?
  • Does the MVC Framework come with .net 3.5? MVC框架是否附带.net 3.5?
  • How does AJAX work with all this stuff? AJAX如何处理所有这些东西?
  • Is visual studios team suite worth the time/money? 视觉工作室团队套房值得花时间/金钱吗?

ASP.NET MVC is an extension of ASP.NET 3.5, it is still in beta and voices says that it will be available before the end of the year. ASP.NET MVC是ASP.NET 3.5的扩展,它仍然处于测试阶段,声音表示它将在今年年底之前上市。

For your other questions: - .NET 3.5 works well on SQL Server 2000 - The MVC framework is not part of .NET 3.5 - For using AJAX with ASP.NET MVC it's better if you take a look at JQuery (or other frameworks). 对于您的其他问题: - .NET 3.5在SQL Server 2000上运行良好 - MVC框架不是.NET 3.5的一部分 - 对于将AJAX与ASP.NET MVC一起使用,如果您查看JQuery(或其他框架),则会更好。 The support for ASP.NET Ajax is not fully available. 对ASP.NET Ajax的支持不完全可用。

IMHO the real advantanges of ASP.NET MVC are: 恕我直言,ASP.NET MVC的真正优势是:

  • Testability 可测性
  • Testability :-) 可测性:-)
  • The ability to generate the HTML that you really want! 能够生成您真正想要的HTML! No viewstate! 没有观点! No other noise! 没有其他噪音! :-) :-)

BTW the jump to TDD with MVC is not simple...it needs time. BTW用MVC跳转到TDD并不简单......需要时间。

HTH HTH

To answer some of your other questions: 要回答其他一些问题:

Is visual studios team suite worth the time/money? 视觉工作室团队套房值得花时间/金钱吗?

How much do you have? 你有多少? If you are a large company with a big budget and development staff and you are focused on Microsoft technologies than I would say yes. 如果您是一家拥有大量预算和开发人员的大公司,并且您专注于Microsoft技术,那么我会说是。 If you answered no to any of these questions, I would go the Open Source Route (Svn or GIT, Cruise Control or Team City, MsBuild, etc.) 如果您对这些问题中的任何一个回答“否”,我会选择开源路线(Svn或GIT,Cruise Control或Team City,MsBuild等)

We are moving from regular 2.0 webforms with no testing to TDD MVC and I need to know the lowdowns as in I've never made such a jump before (not that its a huge jump but I'm a nooby programmer that has just graduated college). 我们正在从没有测试的常规2.0网页转移到TDD MVC,我需要知道降低,因为我以前从未做过这样的跳跃(不是它的巨大跳跃,但我是一个刚刚毕业的大学程序员)。

This is a good time for you to learn MVC then since you don't have a deep investment in Web Forms knowledge and MVC is a much better model for someone like you to master. 这是您学习MVC的好时机,因为您没有对Web Forms知识的深入投入,而MVC对于像您这样的人来说是一个更好的模型。 TDD is not something that you will learn over night but stick with it and you will become a much better programmer because of it. TDD不是你将要学习的东西,而是坚持下去,因此你会成为一个更好的程序员。

I'm by no means an expert with MVC, having just started with it myself, but let's see if I can address a couple of your questions. 我不是MVC的专家,我刚刚开始使用它,但让我们看看我是否可以解决你的几个问题。

  • You absolutely can use SQL 2000 with the .NET Framework 3.5. 您绝对可以将SQL 2000与.NET Framework 3.5一起使用。 I believe the SqlProvider still works with it. 我相信SqlProvider仍然可以使用它。 (Personally, I think it's preferable to work on at least 2005 -- I haven't had pleasure of working with 2008 yet, so I can't say anything about that.) (就我个人而言,我认为至少在2005年工作是可取的 - 我还没有乐于与2008年合作,所以我不能对此发表任何意见。)
  • MVC Framework does not come with 3.5, nor Visual Studio 2008. Download it at ASP.NET . MVC框架没有3.5,也没有Visual Studio 2008.在ASP.NET下载它。 I believe it's currently at beta 1. 我相信它目前处于测试阶段1。

MVC is still a separate download. MVC仍然是一个单独的下载。 jQuery has been announced that it will be a part of the MVC framework . jQuery已经宣布它将成为MVC框架的一部分 (Also MS Ajax) (也是MS Ajax)

SQL Server 2000 is just your persistence location. SQL Server 2000只是您的持久性位置。 It will work with any .Net framework, and is not dependent on a specific version. 它适用于任何.Net框架,并且不依赖于特定版本。

I think if you are moving from Webforms to MVC that it will be more of a rewrite than a conversion. 我想如果你从Webforms转向MVC,那将更多的是重写而不是转换。 There is quite a difference in development between the two, and I think there is a larger jump than you are anticipating. 两者之间的发展存在很大差异,我认为跳跃比你预期的要大。

Anybody aware of a best practices or example project out there that uses ASP.NET MVC and LLBLGEN (selfservicing or adaptor)? 有人知道使用ASP.NET MVC和LLBLGEN(自我管理或适配器)的最佳实践或示例项目吗? Possibly something similar to S#arp Architecture. 可能类似于S#arp架构。

I'm new to MVC and I'm constrained to using LLBLGEN. 我是MVC的新手,我不得不使用LLBLGEN。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM