Skip to Main Content
Programming ASP.NET 3.5, 4th Edition
book

Programming ASP.NET 3.5, 4th Edition

by Dan Maharry, Dan Hurwitz, Jesse Liberty
October 2008
Intermediate to advanced content levelIntermediate to advanced
1166 pages
28h 31m
English
O'Reilly Media, Inc.
Content preview from Programming ASP.NET 3.5, 4th Edition

The ADO.NET Object Model

The goal of ADO.NET is to provide a bridge between your objects in ASP.NET and your backend data store. ADO.NET provides an object-oriented view into the database, encapsulating many of the database properties and relationships within ADO.NET objects. Further, and in many ways most important, the ADO.NET objects encapsulate and hide the details of database access; your objects can interact with ADO.NET objects without you knowing or worrying about the details of how the data is moved to and from the database.

An overview of the ADO.NET architecture is shown in Figure 9-1. We will return to the aspects of this figure throughout this chapter.

ADO.NET architecture diagram

Figure 9-1. ADO.NET architecture diagram

The DataSet Class

The ADO.NET object model is rich, but at its heart it is a fairly straightforward set of classes. One of the key classes is the DataSet (shown in the upper-right corner of Figure 9-1), which is located in the System.Data namespace.

The DataSet represents a rich subset of the entire database, cached in session state or in memory, without a continuous connection to the database. Periodically, you’ll reconnect the DataSet to its parent database, which is how you update the database with changes to the DataSet you’ve made, and update the DataSet with changes in the database made by other processes.

The DataSet doesn’t just capture a few rows from a single table, but rather ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Microsoft® ASP.NET 3.5

Programming Microsoft® ASP.NET 3.5

Dino Esposito
Learning ASP.NET 3.5, 2nd Edition

Learning ASP.NET 3.5, 2nd Edition

Brian MacDonald, Dan Hurwitz, Jesse Liberty
Pro ASP.Net 4 in C# 2010

Pro ASP.Net 4 in C# 2010

Matthew MacDonald, Adam Freeman, Mario Szpuszta
Programming .NET 3.5

Programming .NET 3.5

Jesse Liberty, Alex Horovitz

Publisher Resources

ISBN: 9780596156657Supplemental ContentErrata Page