What is ado.net



Ado.net is a set of software components that expose data access service for .net framework programmers. Basically it is a part of the base class library in .net framework. Programmers used this for creating database driven applications.

Ado.net has two primary parts.
  • Data provider
  • Data set


What is the data provider?


It is a set of related components work together to provide data in an efficient manner. Data provider means providing data from a data base. Here we use two types of databases.
  • SQL : used for SQL server
  • OLEDB : used for oracle, My SQL, Access


Data provider consist 4 main components.
  • Connection object
  • Command object
  • Data reader object
  • Data adapter object


What is Data set?

This is a disconnected, in memory representation of data. The data is data set can be loaded from any valid data source. Data set is made my data adapter.it has two components as Data table and Data relation.
A dataset object represent a schema (either an entire database or a subset of one).Data set has the data table. A data table object represents a single table in the database.it has a name rows and columns.


Components of data provider


Connection object

This provide the connection to the database.it has ConnectionString property that contains all the information which required to connect the database.


Command object

Use to perform some action on the data source, such as reading, updating, or deleting relational data.it containing some execution methods such as ExecuteNonQuery, ExecuteScalar and ExecuteReader.

Data reader object

It provides a forward-only, read-only, connected record set from a database. Since it is connected to the database throughout its life time, it requires exclusive use of connection object.

Data adapter object

Facilitating all communication between the database and a dataset and used to fill a data table or data set with data from the database with its fill method.



Comments

Popular posts from this blog

What is Rapid Application Development

OOP Concepts