Junior
ADO.NET
ADO.NET
What is a DataAdapter?
DataAdapter serves as a bridge between a DataSet/DataTable and the database. It is
used to fill a DataSet with data and to update changes made in the DataSet back to the
database.
Example:
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM
Customers", connection);
DataSet dataset = new DataSet();
dapter.Fill(dataset, "Customers"); // Fills DataSet with data from
the Customers table
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png