Opentopia Directory Encyclopedia Tools

ADO.NET

Encyclopedia : A : AD : ADO : ADO.NET



 

ADO.NET is a set of computer software components that can be used by programmers to access data and data services. It is a part of the base class library that is included with the Microsoft .NET Framework. It is commonly used by programmers to access and modify data stored in relational database systems, though it can also be used to access data in non-relational sources. ADO.NET is sometimes considered an evolution of ADO technology, but was changed so extensively that it can be perceived as an entirely new product.

This technology is a part of .NET Framework 3.0
Enlarge
This technology is a part of .NET Framework 3.0

Architecture

ADO.NET consists of two primary parts:

Data provider

The provider objects. These classes provide access to and communicate with a data source, such as a Microsoft SQL Server database. Each data source has its own set of provider objects, but they each have a common set of suffixes:

DataSet

The DataSet objects, a group of classes describing a simple in-memory relational database. There is only one, data-source-neutral, set of DataSet objects, but both data and database schema structure can be imported from other data sources with -DataAdapter objects. The classes form a containment hierarchy:

Sources of ADO.NET Providers

ADO.NET and Visual Studio.NET

Functionality exists in the Visual Studio .NET IDE to create specialized subclasses of the DataSet classes for a particular database schema, allowing convenient access to each field through strongly-typed properties. This helps catch more programming errors at compile-time and makes the IDE's Intellisense feature more useful.

ADO Vs. ADO.NET

A useful discussion of the shift from ADO to ADO.NET may be found in the MSDN article [ADO.NET for the ADO Programmer].

ObjectSpaces

ObjectSpaces is a set of data access APIs for the Microsoft .NET Framework, to be included with a future version of ADO.NET. ObjectSpaces allow data to be treated as objects, independent of the underlying datastore. In ObjectSpaces, data is exposed as object, which encapsulate their physical structure of tables, rows, columns etc.

ObjectSpaces data objects are known as persistent objects. These ObjectSpaces objects can be used to retrieve data from the datastore, navigate data using its relationships, modify the data, and commit the changes back on the datastore. ObjectSpaces includes different classes to connect to a relational datastore, such as a database, or to an XML Datastore. Both provides uniform methods to access data and encapsulates the communication with the datastore. In addition, these classes can be extended to create adapters for other types of datastores as well.

See also

References

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: