Junior ADO.NET

What is a DataAdapter?

Follow:

A 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();

adapter.Fill(dataset, "Customers"); // Fills DataSet with data from

the Customers table

More from ADO.NET Core Tutorial

All questions for this course