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.

Tensorflow学习笔记(8)——input_data.py解析

这里学习一下前面用到的读取mnist数据库文件的代码。其实并没有用到Tensorlfow的东西,但是读取数据库文件是使用Tensorflow编程实现功能的基础,因此归到Tensorflow的学习笔记中...
  • lhanchao
  • lhanchao
  • 2016年05月03日 22:23
  • 18122

DATA SET (数据集)

1.什么是DATASET         数据集是逻辑上相关的数据集合,主机上的数据、编写的程序源码存放于Data Set中。简而言之:数据集就是类似PC机中的“文件”。         根据...
  • ycc5617
  • ycc5617
  • 2013年10月07日 22:32
  • 2507

奇葩的SQL*Net more data from client等待,导致批处理巨慢

UPDATE Business_Duebill SET  RelativeSerialNo1 = :1 , RelativeSerialNo2 = :2 , CustomerID = :3 , Bus...
  • zhaoyangjian724
  • zhaoyangjian724
  • 2014年05月24日 09:27
  • 1837

Binding .NET DropDownList to various data structures

Data Binding is the process that establishes a connection between the application UI and business lo...
  • hesitate_hl
  • hesitate_hl
  • 2011年07月16日 10:26
  • 434

Extract InfoPath Forms Data To Excel Using The .NET Client Object Model

  • 2013年09月30日 08:12
  • 564KB
  • 下载

How To: Use DPAPI to Encrypt and Decrypt Data (C#/VB.NET)

The code below demonstrates how to call Data Protection API (DPAPI) functions CryptProtectData and C...
  • csui2008
  • csui2008
  • 2012年01月16日 10:08
  • 888

general .net interview questions

What is garbage collection? Garbage collection is the process of managing the allocation and releas...
  • cooleader320
  • cooleader320
  • 2012年07月16日 22:37
  • 300

ASP.NET Overview

ASP.NET Overview  译:ASP.NET概述 ASP.NET is a unified Web development model that includes the services...
  • xutingzhou
  • xutingzhou
  • 2012年09月05日 15:47
  • 1749

ASP.NET Page Life Cycle Overview

When an ASP.NET page runs, the page goes through a life cycle in which it performs a series of proce...
  • Yuzhiyuxia
  • Yuzhiyuxia
  • 2012年10月18日 21:48
  • 894

CSharp - Module 1_Overview of the Microsoft .NET Platform

  • 2008年08月24日 10:59
  • 618KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:General Overview to .NET Data Sets
举报原因:
原因补充:

(最多只允许输入30个字)