Open In App

Introduction to ADO.NET

The .NET Framework includes its own data access technology i.e. ADO.NET. ADO.NET is the latest implementation of Microsoft’s Universal Data Access strategy. ADO.NET consists of managed classes that allows .NET applications to connect to data sources such as Microsoft SQL Server, Microsoft Access, Oracle, XML, etc., execute commands and manage disconnected data..t

Microsoft ADO.NET is the latest improvement after ADO. Firstly, ADO.NET was introduced in the 10th version of the .NET framework, which helps in providing an extensive array of various features to handle data in different modes, such as connected mode and disconnected mode. In connected mode, we are dealing with live data and in disconnected mode, data is provided from the data store.
ADO.NET  was primarily developed to address two ways to work with data that we are getting from data sources. The two ways are as follows :



  1. The first is to do with the user’s need to access data once and to iterate through a collection of data in a single instance i.e caching the data in runtime memory.
  2. The second way to work with data is in connected way which is we do not cache data. And we always go to database to retrieve it

Architecture of ADO.NET :
ADO.NET uses a multilayered architecture that revolves around a few key concepts as –

The ADO.NET architecture is a little bit different from the ADO, which can be shown from the following figure of the architecture of ADO.NET.



Architecture of ADO.NET

One of the key differences between ADO and ADO.NET is how they deal with the challenge of different data sources. In ADO.NET, programmers always use a generic set of objects, no matter what the underlying data source is. For example, if we want to retrieve a record from an Oracle Database, we use the same connection class that we use to tackle the same task with SQL Server. This is not the case with ADO.NET, which uses a data provider model and the DataSet.

Features of ADO.NET :
The following are the features of ADO.NET –

DataSet.Student("Kawal").Marks;
Article Tags :