Open Source RDBMS - Seamless, Scalable, Stable and Free

English | Login |Register

Creating a DataSet


You create an instance of a DataSet by calling the DataSet constructor. Optionally specify a name argument. If you do not specify a name for the DataSet, the name is set to "New DataSet".

You can also create a new DataSet based on an existing DataSet. The new DataSet can be an exact copy of the existing DataSet; a clone of the DataSet that copies the relational structure or schema but that does not contain any of the data from the existing DataSet; or a subset of the DataSet, containing only the modified rows from the existing DataSet using the GetChanges method.

DataSet customerOrders = new DataSet("CustomerOrders");

comments powered by Disqus
문서 정보
viewed 595 times
번역 en
작성자
posted 작년
kevinyang
공헌자
마지막 수정시간 작년
변경 내역 보기
Share this article