data adapter

  • Thread starter Thread starter rodney
  • Start date Start date
R

rodney

Hey all,

I was just wondering why in some examples in loading a
dataset I see the data adapter object and then in others
I don't see the data adapter object.

Thanks,
Rodney
 
Not sure which you are referring to. The DataAdapter is the primary way to
fill a Dataset/DataTable. Granted you can created Datatable or Dataset
programatically and populate them as such, but if you are getting the data
from a Database, and you using Disconnected mode (ie DataSet/DataTable vs.
DataReader objects), then a DataAdapter is being used. [There could be some
example out there where they are reading an XML file or similary
methodology, but my guess is that the DataAdapter is withing scope, it's
probably just not in the code snippet.

However, if they aren't using a DataSet, they may be using a DataReader or
one of the command methods like ExecuteNonQuery or ExecuteScalar, in which
case they may not be using an Adapter.


If you have a link or two, I can speak to them a little better.

Cheers,

Bill
 
Back
Top