[Mono-list] ADO and mono

Eric Damron edamron@spamcop.net
Tue, 19 Oct 2004 15:44:20 -0700

I have a question about using ADO with mono. I'm reading a book that 
explains the DataSet and DataAdapter but it doesn't make sense to me.

The book says that one creates a data Adaptor like this:

SqlDataAdapter( commandString, connectionString)

Okay, no problem there. Lets say the command string contains what is 
suggested in the book:

“Select CompanyName, ContactName from Customers”

The book then says you create a DataSet:

DataSet ds = new DataSet;

Okay so far. Then the book says to fill the dataset:

DataAdapter.Fill(ds, “Customers”);

My question is what is “Customers” about? Isn't it redundant since the 
SQL statement already specified exactly what was to be returned?