无论是好是坏,答案就是简单性。当2.0框架推出,并在其中包含了TableAdapters,就变得非常容易获取基本的CRUD类型应用程序,甚至是显示数据的首页。只需连接到您的服务器,将表拖到您的位置,结构就建立好了,包括外键/主键/唯一键引用。需要对这些数据进行更新吗?使用向导,指定现有的过程,或让向导为您生成adhoc/stored过程。
然后你就完成了,将其连接到GridView,你可以快速地完成许多操作:重新排序、重新查询、在离线状态下编辑多个记录,并以单个或批量方式进行更新。在处理需要快速完成的项目时,这种便利很难忽视。另外,以这种本地的“DataTable”格式拥有的便利也变得对于XML乱搞操作非常有用,因为DataSet模型在许多方面下使用XML。
I will admit that I have not checked out the latest versions of the ORMs out there, and I m not sure if there is a wizard for LINQ that will do this much within a few clicks. And most people are a little slow to adapt newer technology as is, so it easy to see how it is still being used heavily.
Seeing that new Dynamic Data Service site/project is built off of LINQ to SQL or LINQ to EF, I think the tide might finally change to the newer model.