Data Set
Data Set
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.