Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we fill DataSet without DataAdapter?

I know that we normally fill DataSetwith the help of DataAdapter's Fill method, but I want to know that Can we fill DataSet without DataAdapter?
Any idea ?

like image 333
jams Avatar asked Feb 25 '26 00:02

jams


1 Answers

You can use DataSet.Load to load from an IDataReader. Or DataSet.ReadXml to read from an Xml document.

Take a look at the DataSet methods on MSDN.

like image 187
Joe Avatar answered Feb 27 '26 14:02

Joe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!