views:

57

answers:

1

Title says it all. What is the difference between a DataSource and DataAdapter? I'm trying to decide if I should descend from IDataSource or IDataAdapter for code to be shared between Winforms and WebForms and I can't seem to figure out what the difference is other than slightly different ways to use them.

+1  A: 

DataSource is just source of data from where we are populating the data i.e. DataSet, DataBase, XML File, etc...

DataAdapter is tool or class using by which we can populate/update data from database.

Jinal Desai - LIVE