0% found this document useful (0 votes)
21 views6 pages

Data Set

The document discusses the DataSet class in ADO.Net. It states that a DataSet represents multiple database tables as DataTable objects, storing records from one or more tables in a tabular format. It can be populated with data from a database using a DataAdapter, allowing for disconnected data access without an active connection. The DataSet provides a local copy of data that makes the application faster and more reliable.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views6 pages

Data Set

The document discusses the DataSet class in ADO.Net. It states that a DataSet represents multiple database tables as DataTable objects, storing records from one or more tables in a tabular format. It can be populated with data from a database using a DataAdapter, allowing for disconnected data access without an active connection. The DataSet provides a local copy of data that makes the application faster and more reliable.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

PART-8

DataSet
in ADO.Net
PRESENTER: MOHAMMAD ADIL
DataSet in ADO.Net
DataTable Represents a single table
Both DataTable & DataSet resides
DataSet In Dis-Connected Architecture.
In Both cases SqlDataAdapter class is used
DataTable To fill the data in DataSet & DataTable.
DataTable DataSet represents multiple tables
As DataTable objects
DataTable
DataSet in ADO.Net
• The DataSet class is a very important class of ADO.NET.
• It is used in disconnected architecture.
• It does not require a open or active connection to the database.
• It stores record of one or more data tables.
• It is a collection of data tables that contain the data.
• DataSet is tabular representation of data.
• Tabular representation means it represents data into row and
column format.
DataSet in ADO.Net
• It represent records in the form of Database table (Row and
Column) format.
• We can use Dataset in combination with DataAdapter Class
• The Dataset contains the copy of the data we requested.
• The Dataset contains more than one Table at a time.
• A DataSet is a local copy of your Database Table that gets populated
in client PC.
• It is independent of Data Source and because it exists in the local
system, it makes application fast and reliable
DataSet in ADO.Net
• We can set up Data Relations between these tables within the
DataSet.
• The DataAdapter Object allows us to populate DataTables in a
DataSet.
• We can use Fill method of the DataAdapter for populating data in a
Dataset.
• The ADO.NET DataSet class belongs to the System.Data namespace.
DataSet in ADO.Net
• DataSet is an in-memory representation of a collection of database
objects including related tables, constraints and relationships
among the tables.
• We can say that the DataSet is a small database because it stores
the schema and data in the application memory area.

You might also like