 The data adapter fills a DataSet object when reading the data and writes in a single batch when persisting changes back to the database.A data adapter contains a reference to the connection object and opens and closes the connection automatically when reading from or writing to the database.Additionally, the data adapter contains command object references for SELECT, INSERT, UPDATE, and DELETE operations on the data.