开发者

What is the difference between a DataSource and DataAdapter?

开发者 https://www.devze.com 2022-12-29 03:59 出处:网络
What is the differe开发者_运维百科nce 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 WebFor

What is the differe开发者_运维百科nce 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消