public DataSet SelectUniSrvRows(DataSet myDataSet,string myConnection,string mySelectQuery,string myTableName)
{
UniConnection myConn = new UniConnection(myConnection);
UniDataAdapter myDataAdapter = new UniDataAdapter();
myDataAdapter.SelectCommand = new UniCommand(mySelectQuery, myConn);
UniCommandBuilder myCommandBuilder = new UniCommandBuilder(myDataAdapter);
myConn.Open();
DataSet myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet, "Departments");
//code to modify data in dataset here
//Without the UniCommandBuilder this line would fail
myDataAdapter.Update(myDataSet, "Departments");
myConn.Close();
return myDataSet;
}