Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section B.1. Using ADO.NET to access data

B.1. Using ADO.NET to access data

ADO.NET is a technology that enables physical interaction with a database. Internally, it leverages Component Object Model (COM) providers, but it exposes functionalities through .NET classes. Most of the complexity of communicating with the database is stripped away, and you only have to deal with ADO.NET classes.

Even if working with classes is somewhat hard, you can do lots of things to simplify the process of retrieving data and pouring it into objects. The reverse process has the same issue; persisting entities data into a database is code expensive. You have to create and open a connection to the database, issue the commands, process the result, and close the connection. This flow is shown in figure B.1.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint