SlideShare a Scribd company logo
WELCOME
TO
ASP.NET Tutorials
on
ADO.NET
• ADO.NET provides a bridge between the front end controls
and the back end database. The ADO.NET objects
encapsulate all the data access operations and the controls
interact with these objects to display data, thus hiding the
details of movement of data.
Ado.net with asp.net
• The DataSet Class
• The dataset represents a subset of the database. It does not
have a continuous connection to the database. To update
the database a reconnection is required. The DataSet
contains DataTable objects and DataRelation objects. The
DataRelation objects represent the relationship between
two tables.
Properties Description
CaseSensitive Indicates whether string comparisons within the data tables are case-sensitive.
Container Gets the container for the component.
DataSetName Gets or sets the name of the current data set.
DefaultViewManager Returns a view of data in the data set.
DesignMode Indicates whether the component is currently in design mode.
EnforceConstraints Indicates whether constraint rules are followed when attempting any update
operation.
Events Gets the list of event handlers that are attached to this component.
ExtendedProperties Gets the collection of customized user information associated with the DataSet.
HasErrors Indicates if there are any errors.
IsInitialized Indicates whether the DataSet is initialized.
Locale Gets or sets the locale information used to compare strings within the table.
Namespace Gets or sets the namespace of the DataSet.
Prefix Gets or sets an XML prefix that aliases the namespace of the DataSet.
Relations Returns the collection of DataRelation objects.
Tables Returns the collection of DataTable objects.
Methods Description
AcceptChanges Accepts all changes made since the DataSet was loaded or this
method was called.
BeginInit Begins the initialization of the DataSet. The initialization occurs
at run time.
Clear Clears data.
Clone Copies the structure of the DataSet, including all DataTable
schemas, relations, and constraints. Does not copy any data.
Copy Copies both structure and data.
CreateDataReader() Returns a DataTableReader with one result set per DataTable, in
the same sequence as the tables appear in the Tables collection.
CreateDataReader(DataTable[]) Returns a DataTableReader with one result set per DataTable.
EndInit Ends the initialization of the data set.
Equals(Object) Determines whether the specified Object is equal to the current Object.
Finalize Free resources and perform other cleanups.
GetChanges Returns a copy of the DataSet with all changes made since it was loaded or the
AcceptChanges method was called.
GetChanges(Data
RowState)
Gets a copy of DataSet with all changes made since it was loaded or the
AcceptChanges method was called, filtered by DataRowState.
GetDataSetSchem
a
Gets a copy of XmlSchemaSet for the DataSet.
GetObjectData Populates a serialization information object with the data needed to serialize
the DataSet.
GetType Gets the type of the current instance.
GetXML Returns the XML representation of the data.
GetXMLSchema Returns the XSD schema for the XML representation of the data.
HasChanges() Gets a value indicating whether the DataSet has changes, including new, deleted, or
modified rows.
HasChanges(DataRowState) Gets a value indicating whether the DataSet has changes, including new, deleted, or
modified rows, filtered by DataRowState.
IsBinarySerialized Inspects the format of the serialized representation of the DataSet.
Load(IDataReader, LoadOption,
DataTable[])
Fills a DataSet with values from a data source using the supplied IDataReader, using an
array of DataTable instances to supply the schema and namespace information.
Load(IDataReader, LoadOption, String[]) Fills a DataSet with values from a data source using the supplied IDataReader, using an
array of strings to supply the names for the tables within the DataSet.
Merge() Merges the data with data from another DataSet. This method has different overloaded
forms.
ReadXML() Reads an XML schema and data into the DataSet. This method has different overloaded
forms.
ReadXMLSchema(0) Reads an XML schema into the DataSet. This method has different overloaded forms.
RejectChanges Rolls back all changes made since the last call to AcceptChanges.
WriteXML() Writes an XML schema and data from the DataSet. This method has different overloaded
forms.
WriteXMLSchema() Writes the structure of the DataSet as an XML schema. This method has different
overloaded forms.
• The DataTable Class
• The DataTable class represents the tables in the database. It
has the following important properties;
Properties Description
ChildRelations Returns the collection of child relationship.
Columns Returns the Columns collection.
Constraints Returns the Constraints collection.
DataSet Returns the parent DataSet.
DefaultView Returns a view of the table.
ParentRelations Returns the ParentRelations collection.
PrimaryKey Gets or sets an array of columns as the primary key for the table.
Rows Returns the Rows collection.
Methods Description
AcceptChanges Commits all changes since the last AcceptChanges.
Clear Clears all data from the table.
GetChanges Returns a copy of the DataTable with all changes made since the AcceptChanges method
was called.
GetErrors Returns an array of rows with errors.
ImportRows Copies a new row into the table.
LoadDataRow Finds and updates a specific row, or creates a new one, if not found any.
Merge Merges the table with another DataTable.
NewRow Creates a new DataRow.
RejectChanges Rolls back all changes made since the last call to AcceptChanges.
Reset Resets the table to its original state.
Select Returns an array of DataRow objects.
Properties Description
HasErrors Indicates if there are any errors.
Items Gets or sets the data stored in a specific column.
ItemArrays Gets or sets all the values for the row.
Table Returns the parent table.
Methods Description
AcceptChanges Accepts all changes made since this method was called.
BeginEdit Begins edit operation.
CancelEdit Cancels edit operation.
Delete Deletes the DataRow.
EndEdit Ends the edit operation.
GetChildRows Gets the child rows of this row.
GetParentRow Gets the parent row.
GetParentRows Gets parent rows of DataRow object.
RejectChanges Rolls back all changes made since the last call to AcceptChanges.
• The DataAdapter Object
• The DataAdapter object acts as a mediator between the DataSet object and the database. This helps
the Dataset to contain data from multiple databases or other data source.
• The DataReader Object
• The DataReader object is an alternative to the DataSet and DataAdapter combination. This object
provides a connection oriented access to the data records in the database. These objects are
suitable for read-only access, such as populating a list and then breaking the connection.
• DbCommand and DbConnection Objects
• The DbConnection object represents a connection to the data source. The connection could be
shared among different command objects.
• The DbCommand object represents the command or a stored procedure sent to the database from
retrieving or manipulating data.
Thank You
For more Tutorials on C#, ASP.NET, MVC, JAVASCRIPT, HTML,
CSS subscribe to our YouTube channel
SIRYMEDIA
To watch more videos visit our website
www.sirymedia.in

More Related Content

PPTX
Ado.net
PPT
2310 b 09
PPT
Ado.net & data persistence frameworks
PPT
ADO .Net
PPT
Introduction to ADO.NET
PPT
ADO.net control
PPTX
Ado.Net Tutorial
PPTX
Disconnected Architecture and Crystal report in VB.NET
Ado.net
2310 b 09
Ado.net & data persistence frameworks
ADO .Net
Introduction to ADO.NET
ADO.net control
Ado.Net Tutorial
Disconnected Architecture and Crystal report in VB.NET

What's hot (20)

PDF
Ado.net
PPTX
Disconnected data
PPT
ADO.NET
PPTX
Chapter 3: ado.net
PDF
ADO.NET difference faqs compiled- 1
PPS
Vb.net session 05
PPTX
ADO.NET -database connection
PPTX
ADO.NET by ASP.NET Development Company in india
PDF
Visual Basic.Net & Ado.Net
PDF
Ado.Net Architecture
PPT
Ado.net
PPT
For Beginers - ADO.Net
PPTX
Ch06 ado.net fundamentals
PDF
Intake 38 10
PPTX
Configuring Data Binding part2 ABTO Software Lecture Korotchyn
PPTX
Datasource in asp.net
PPTX
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
PDF
PPTX
บทที่4
PDF
Intake 38 data access 1
Ado.net
Disconnected data
ADO.NET
Chapter 3: ado.net
ADO.NET difference faqs compiled- 1
Vb.net session 05
ADO.NET -database connection
ADO.NET by ASP.NET Development Company in india
Visual Basic.Net & Ado.Net
Ado.Net Architecture
Ado.net
For Beginers - ADO.Net
Ch06 ado.net fundamentals
Intake 38 10
Configuring Data Binding part2 ABTO Software Lecture Korotchyn
Datasource in asp.net
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
บทที่4
Intake 38 data access 1
Ad

Viewers also liked (14)

PPT
DESIS Medellin Lab_project
PPTX
11.11.29 project presentation
PPTX
I.E. 5097 S.J.M. Pintura
PPTX
Skills enhancement workshop
PPTX
I.E. 5097 S.J.M. Música
PDF
Uniformes De Trabajo
PDF
Trends and Developments of Social Media Monitoring
PDF
Customer Interaction And Primary Research_internship_certificate
ODT
Proyecto de vinculacion
PPTX
Investigación Cualitativa y Cuantitativa - Metodología de la Investigación
PDF
portfolio r
PPSX
Apresentando a TALENTOS HUMANOS
PPT
Talentos: reter, otimizar, produzir
PPTX
Queer america presentation
DESIS Medellin Lab_project
11.11.29 project presentation
I.E. 5097 S.J.M. Pintura
Skills enhancement workshop
I.E. 5097 S.J.M. Música
Uniformes De Trabajo
Trends and Developments of Social Media Monitoring
Customer Interaction And Primary Research_internship_certificate
Proyecto de vinculacion
Investigación Cualitativa y Cuantitativa - Metodología de la Investigación
portfolio r
Apresentando a TALENTOS HUMANOS
Talentos: reter, otimizar, produzir
Queer america presentation
Ad

Similar to Ado.net with asp.net (20)

PPS
Ado.net session07
PPSX
ADO.NET
PDF
Presentation on the ADO.NET framework in C#
PPT
Chapter 4 event it theory programming.pptx
PPTX
QTP Automation Testing Tutorial 7
PPT
Introduction to ado
PDF
database in my squel assignment for students.pdf
PDF
Java 1-contd
PDF
ASP.NET- database connectivity
PDF
What is ado .net architecture_.pdf
PPT
Session 8 Bai 8 ve winform
PDF
Intake 37 10
PPTX
Csharp_dotnet_ADO_Net_database_query.pptx
PPTX
PPTX
data controls in asp.net
PPTX
asp.net data controls
PDF
MongoDB.pdf54teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer
PPTX
PPTX
Stateful data serialization
Ado.net session07
ADO.NET
Presentation on the ADO.NET framework in C#
Chapter 4 event it theory programming.pptx
QTP Automation Testing Tutorial 7
Introduction to ado
database in my squel assignment for students.pdf
Java 1-contd
ASP.NET- database connectivity
What is ado .net architecture_.pdf
Session 8 Bai 8 ve winform
Intake 37 10
Csharp_dotnet_ADO_Net_database_query.pptx
data controls in asp.net
asp.net data controls
MongoDB.pdf54teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer
Stateful data serialization

More from Sireesh K (20)

PPTX
Cn10
PPTX
chanakya neeti
PPTX
chanakya neeti
DOCX
What is mvc
PPTX
PPTX
31cs
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
Cn10
chanakya neeti
chanakya neeti
What is mvc
31cs

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
Pre independence Education in Inndia.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Basic Mud Logging Guide for educational purpose
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
TR - Agricultural Crops Production NC III.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Computing-Curriculum for Schools in Ghana
Pre independence Education in Inndia.pdf
RMMM.pdf make it easy to upload and study
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
Cell Types and Its function , kingdom of life
Basic Mud Logging Guide for educational purpose
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf

Ado.net with asp.net

  • 3. • ADO.NET provides a bridge between the front end controls and the back end database. The ADO.NET objects encapsulate all the data access operations and the controls interact with these objects to display data, thus hiding the details of movement of data.
  • 5. • The DataSet Class • The dataset represents a subset of the database. It does not have a continuous connection to the database. To update the database a reconnection is required. The DataSet contains DataTable objects and DataRelation objects. The DataRelation objects represent the relationship between two tables.
  • 6. Properties Description CaseSensitive Indicates whether string comparisons within the data tables are case-sensitive. Container Gets the container for the component. DataSetName Gets or sets the name of the current data set. DefaultViewManager Returns a view of data in the data set. DesignMode Indicates whether the component is currently in design mode. EnforceConstraints Indicates whether constraint rules are followed when attempting any update operation. Events Gets the list of event handlers that are attached to this component. ExtendedProperties Gets the collection of customized user information associated with the DataSet.
  • 7. HasErrors Indicates if there are any errors. IsInitialized Indicates whether the DataSet is initialized. Locale Gets or sets the locale information used to compare strings within the table. Namespace Gets or sets the namespace of the DataSet. Prefix Gets or sets an XML prefix that aliases the namespace of the DataSet. Relations Returns the collection of DataRelation objects. Tables Returns the collection of DataTable objects.
  • 8. Methods Description AcceptChanges Accepts all changes made since the DataSet was loaded or this method was called. BeginInit Begins the initialization of the DataSet. The initialization occurs at run time. Clear Clears data. Clone Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copy any data. Copy Copies both structure and data. CreateDataReader() Returns a DataTableReader with one result set per DataTable, in the same sequence as the tables appear in the Tables collection. CreateDataReader(DataTable[]) Returns a DataTableReader with one result set per DataTable.
  • 9. EndInit Ends the initialization of the data set. Equals(Object) Determines whether the specified Object is equal to the current Object. Finalize Free resources and perform other cleanups. GetChanges Returns a copy of the DataSet with all changes made since it was loaded or the AcceptChanges method was called. GetChanges(Data RowState) Gets a copy of DataSet with all changes made since it was loaded or the AcceptChanges method was called, filtered by DataRowState. GetDataSetSchem a Gets a copy of XmlSchemaSet for the DataSet. GetObjectData Populates a serialization information object with the data needed to serialize the DataSet. GetType Gets the type of the current instance. GetXML Returns the XML representation of the data.
  • 10. GetXMLSchema Returns the XSD schema for the XML representation of the data. HasChanges() Gets a value indicating whether the DataSet has changes, including new, deleted, or modified rows. HasChanges(DataRowState) Gets a value indicating whether the DataSet has changes, including new, deleted, or modified rows, filtered by DataRowState. IsBinarySerialized Inspects the format of the serialized representation of the DataSet. Load(IDataReader, LoadOption, DataTable[]) Fills a DataSet with values from a data source using the supplied IDataReader, using an array of DataTable instances to supply the schema and namespace information. Load(IDataReader, LoadOption, String[]) Fills a DataSet with values from a data source using the supplied IDataReader, using an array of strings to supply the names for the tables within the DataSet. Merge() Merges the data with data from another DataSet. This method has different overloaded forms. ReadXML() Reads an XML schema and data into the DataSet. This method has different overloaded forms. ReadXMLSchema(0) Reads an XML schema into the DataSet. This method has different overloaded forms. RejectChanges Rolls back all changes made since the last call to AcceptChanges. WriteXML() Writes an XML schema and data from the DataSet. This method has different overloaded forms. WriteXMLSchema() Writes the structure of the DataSet as an XML schema. This method has different overloaded forms.
  • 11. • The DataTable Class • The DataTable class represents the tables in the database. It has the following important properties;
  • 12. Properties Description ChildRelations Returns the collection of child relationship. Columns Returns the Columns collection. Constraints Returns the Constraints collection. DataSet Returns the parent DataSet. DefaultView Returns a view of the table. ParentRelations Returns the ParentRelations collection. PrimaryKey Gets or sets an array of columns as the primary key for the table. Rows Returns the Rows collection.
  • 13. Methods Description AcceptChanges Commits all changes since the last AcceptChanges. Clear Clears all data from the table. GetChanges Returns a copy of the DataTable with all changes made since the AcceptChanges method was called. GetErrors Returns an array of rows with errors. ImportRows Copies a new row into the table. LoadDataRow Finds and updates a specific row, or creates a new one, if not found any. Merge Merges the table with another DataTable. NewRow Creates a new DataRow. RejectChanges Rolls back all changes made since the last call to AcceptChanges. Reset Resets the table to its original state. Select Returns an array of DataRow objects.
  • 14. Properties Description HasErrors Indicates if there are any errors. Items Gets or sets the data stored in a specific column. ItemArrays Gets or sets all the values for the row. Table Returns the parent table.
  • 15. Methods Description AcceptChanges Accepts all changes made since this method was called. BeginEdit Begins edit operation. CancelEdit Cancels edit operation. Delete Deletes the DataRow. EndEdit Ends the edit operation. GetChildRows Gets the child rows of this row. GetParentRow Gets the parent row. GetParentRows Gets parent rows of DataRow object. RejectChanges Rolls back all changes made since the last call to AcceptChanges.
  • 16. • The DataAdapter Object • The DataAdapter object acts as a mediator between the DataSet object and the database. This helps the Dataset to contain data from multiple databases or other data source. • The DataReader Object • The DataReader object is an alternative to the DataSet and DataAdapter combination. This object provides a connection oriented access to the data records in the database. These objects are suitable for read-only access, such as populating a list and then breaking the connection. • DbCommand and DbConnection Objects • The DbConnection object represents a connection to the data source. The connection could be shared among different command objects. • The DbCommand object represents the command or a stored procedure sent to the database from retrieving or manipulating data.
  • 17. Thank You For more Tutorials on C#, ASP.NET, MVC, JAVASCRIPT, HTML, CSS subscribe to our YouTube channel SIRYMEDIA To watch more videos visit our website www.sirymedia.in