This section discusses four new ADO.NET objects:
- DataAdapter : Enables you to transfer data from the physical database to the inmemory database and back again.
- DataTable : Represents an in-memory database table.
- DataView : Represents an in-memory database view.
- DataSet : Represents an in-memory database.
The advantage of using the objects discussed in this section is that they provide you with more functionality. For example, you can filter and sort the rows represented by a DataView. Furthermore, you can use the DataTable object to track changes made to records and accept or reject the changes.
The big disadvantage of using the objects discussed in this section is that they tend to be slower and more resource intensive. Retrieving 500 records with a DataReader is much faster than retrieving 500 records with a DataAdapter.