We had received this email from one our blog readers, who had gone for the c# /.NETinterview in Accenture.
“Adapter” class connect the dataset and data source. Below is simple ADO.NET code where you can see how the “da” which is the data adapter is filling the dataset i.e. “CustomersDataSet” using the “Fill” method.
DataSet CustomersDataSet = new Dataset();
da = new SqlDataAdapter(“select * from CustTest order by Custld”, cn);
da.Fill(CustomersDataSet, “Customers”);
Just a quick note the above answer is taken from the book .NET interview question by Shivprasad koirala.
