General Overview to .NET Data Sets

原创 2004年08月22日 11:04:00
The huge mainstream of applications built today involve data manipulation in some way-whether it be retrieval, storage, change, translation, verification, or transportation. For an application to be scalable and allow other apps to interact with it, the app will need a common mechanism to pass the data around.

Ideally, the vehicle that transports the data should contain the base data, any related data and metadata, and should be able to track changes to the data. Here's where the ADO.NET DataSet steps in. The ADO.NET DataSet is a data construct that can contain several relational rowsets, the relations that link those rowsets, and the metadata for each rowset. The DataSet also tracks which fields have changed, their new values and their original values, and can store custom information in its Extended Properties collection. The DataSet can be exported to XML or created from an XML document, thus enabling increased interoperability between applications.

When we look at the DataSet object model, we see that it is made up of three collections; Tables, Relations, and ExtendedProperties. These collections make up the relational data structure of the DataSet. The DataSet.Tables property is a DataTableCollection object, which contains zero or more DataTable objects. Each DataTable represents a table of data from the data source. Each DataTable is made p of a Columns collection and a Rows collection, which are zero or more DataColumns or DataRows, in that order.

The Relations property as a DataRelationCollection object, which contains zero or more DataRelation objects. The DataRelation objects define a parent-child relationship between two tables based on foreign key values. On the other hand, The ExtendedProperties property is a PropertyCollection object, which contains zero or more user-defined properties. The ExtendedProperties collection can be used contains zero or more user defined properties. This property collection can be used to store custom data related to the DataSet, such as the time when the DataSet was constructed.

One of the key points to remember about the DataSet is that it doesn't care where it originated. Unlike the ADO 2.x Recordset, the DataSet doesn't track which database or XML document its data came from. In this way, the DataSet is a standalone data store that can be passed from tier to tier in an n-tiered architecture. This Article, we will continue by showing us how to use the DataSet in a .NET-based application to retrieve data, track modifications made by the user, and send the data back to the database.

Using C# .NET, we will show how to retrieve products from the Northwind database from a business services application and load the information in the presentation tier, all using .NET. We will walk through examples of how to use the DataSet to save several rows to the database at one time. The code samples will demonstrate how to send new rows, changed rows, and deleted rows in one trip to the business services tier and then on to the database by using a DataSet.

MATLAB, Landsat 8, and AWS Public Data Sets

MATLAB, Landsat 8, and AWS Public Data Sets Posted by Steve Eddins, March 19, 2015 A few weeks ag...
  • jiangbingbo123
  • jiangbingbo123
  • 2015-12-28 20:45:48
  • 238

【论文阅读笔记】Deep Learning in Medical Imaging: Overview and Future Promise of an Exciting New Technique

本文是一篇类似于当前期刊论文介绍的文章,对深度学习应用于医学图像分析方向的研究论文进行了简单的小结,论文发表在IEEE TRANSACTIONS ON MEDICAL IMAGING, VOL. 35...
  • cskywit
  • cskywit
  • 2018-02-03 11:14:14
  • 151

An Architecture for Fast and General Data Processing on Large Clusters

来源: 介绍大型集群上的快速和通用数据处理架构An Architecture for Fa...
  • ASIA_kobe
  • ASIA_kobe
  • 2015-10-29 09:42:35
  • 634

Pawlak-ROUGH SETS Theoretical Aspects of Reasoning about Data

  • 2012年10月28日 12:19
  • 7.98MB
  • 下载

Detecting Novel Associations in Large Data Sets.pdf

  • 2012年01月16日 08:14
  • 2.06MB
  • 下载

Mining Massive Data Sets PDF

  • 2015年03月13日 14:50
  • 2.91MB
  • 下载

DFSMS: Using Data Sets

  • 2008年08月01日 15:38
  • 4.53MB
  • 下载

FAT: General Overview of On-Disk Format.pdf

  • 2008年04月24日 12:13
  • 107KB
  • 下载

Disjoint-set Data Structures

By vlad_D TopCoder MemberIntroduction Many times the efficiency of an algorithm depends on ...
  • touzani
  • touzani
  • 2007-11-30 06:07:00
  • 2835


C/C++ Programming C++ TutoralThe TutorialC++ StringIntroduction to Object-Oriented Pro...
  • yxjiang
  • yxjiang
  • 2008-11-23 12:41:00
  • 2544
您举报文章:General Overview to .NET Data Sets