public DataSet SelectSalesforceSrvRows(DataSet myDataSet,string salesforceConnection,string mySelectQuery,string myTableName)
{
SalesforceConnection myConn = new SalesforceConnection(salesforceConnection);
SalesforceDataAdapter myDataAdapter = new SalesforceDataAdapter();
myDataAdapter.SelectCommand = new SalesforceCommand(mySelectQuery, myConn);
SalesforceCommandBuilder salesforceCommandBuilder = new SalesforceCommandBuilder(myDataAdapter);
myConn.Open();
DataSet myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet, "Departments");
//code to modify data in dataset here
//Without the SalesforceCommandBuilder this line would fail
myDataAdapter.Update(myDataSet, "Departments");
myConn.Close();
return myDataSet;
}