Junior
From PDF
ADO.NET
ADO.NET
What is a DataAdapter?
Short answer: 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 code
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM Customers", connection); DataSet dataset = new DataSet(); adapter.Fill(dataset, "Customers"); // Fills DataSet with data from the Customers table
Real-world example (ShopNest)
ShopNest’s reporting job still uses ADO.NET for a heavy SQL query where raw performance and stored procedures matter more than EF convenience.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png