This implementation of the N public Sub New () DataSet constructor does not use any parameters, and it creates the default name "NewDataSet" for the new instance.
N Public Sub New (ByVal datasetname as String)
n Protected Sub New (ByVal info as Serializationinfo,byval context as StreamingContext)
Parameters
The name of the 1.dataSetName DataSet.
2.info the data required to serialize or deserialize an object.
3.context the source and destination of a given serialized stream.
A DataSet is the primary component of a ado.net structure, which is an in-memory cache of data retrieved from a data source. The DataSet consists of a set of DataTable objects that you can associate with the DataRelation object. You can also enforce data integrity in a dataset by using the UniqueConstraint and ForeignKeyConstraint objects.
Although the DataTable object contains data, DataRelationCollection allows you to navigate through the hierarchy of the table. These tables are included in the datatablecollection accessed through the Tables property. When accessing a DataTable object, note that they are case-sensitive. For example, if a DataTable is named "Mydatatable" and the other is named "Mydatatable", the string used to search for one of the tables is considered case-sensitive. However, if "mydatatable" exists and "mydatatable" does not exist, the search string is considered case-insensitive.
In a typical multi-tier implementation, the steps for creating and refreshing a dataset and then updating the original data sequentially include:
1. Generate and populate each DataTable in the dataset using data from the data source by DataAdapter.
2. Change the data in a single DataTable object by adding, updating, or deleting the DataRow object.
3. Call the GetChanges method to create a second DataSet that reflects only changes made to the data.
4. Call the DataAdapter Update method and pass the second DataSet as a parameter.
5. Call the Merge method to merge the changes from the second DataSet into the first one.
6. Call AcceptChanges for DataSet. Alternatively, call RejectChanges to cancel the change.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.