首页> 外文期刊>MSDN Magazine >DATA POINTS: Techniques in Filling ADO.NET DataTables: Performing Your Own Analysis
【24h】

DATA POINTS: Techniques in Filling ADO.NET DataTables: Performing Your Own Analysis

机译:数据要点:填充ADO.NET数据表的技术:执行自己的分析

获取原文
获取原文并翻译 | 示例
           

摘要

One of the most fundamental differences between ADO.NET and classic ADO is how the data is represented. In ADO.NET it's represented in related DataTable objects, whereas classic ADO represents data in Recordset objects. Using classic ADO, the typical app retrieves a single rowset and stores it in a single Recordset object. When using DataTable objects in ADO.NET, you can store several rowsets in several DataTable objects, all related to one another and contained within a single DataSet. For example, you can retrieve a customer rowset, order rowset, and an order detail rowset and store them in three DataTable objects within a single DataSet. This gives you great flexibility to manage your data. I've recently received several inquires asking which technique is best for retrieving data and populating a DataSet. Since the Microsoft" .NET Framework offers so many choices on how to write the code, many developers are now taking a close look at the different options in an effort to make the best choice for their apps. One of these choices is how to retrieve data, relate it, display it, and represent it in an app. The concept of running scenarios before deciding how to architect an application isn't new by any means. Its importance is quite critical, especially when presented with a relatively new development model such as the .NET Framework. Because developers are faced with so many new ways to build apps, it could be argued that testing is more critical than ever.
机译:ADO.NET与经典ADO之间最根本的区别之一是数据的表示方式。在ADO.NET中,它表示在相关的DataTable对象中,而经典的ADO在Recordset对象中表示数据。使用经典的ADO,典型的应用程序检索单个行集并将其存储在单个Recordset对象中。在ADO.NET中使用DataTable对象时,可以将多个行集存储在多个DataTable对象中,它们彼此相关并且包含在单个DataSet中。例如,您可以检索客户行集,订单行集和订单明细行集,并将它们存储在单个DataSet中的三个DataTable对象中。这为您管理数据提供了极大的灵活性。我最近收到了一些询问,询问哪种技术最适合检索数据和填充数据集。由于Microsoft .NET Framework提供了许多有关如何编写代码的选择,因此许多开发人员现在正在仔细研究各种选项,以期为其应用程序选择最佳选择。其中之一就是如何检索数据,将其关联,显示并在应用程序中表示在决定如何构建应用程序之前运行场景的概念绝不是什么新鲜事物,它的重要性非常关键,尤其是在采用相对较新的开发模型时由于开发人员面临着许多构建应用程序的新方法,因此可以说测试比以往任何时候都更为关键。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号