源码为:
string myConnection="Provider=OraOLEDB.Oracle;Password=best;Persist Security Info=True;User ID=best;Data Source=best;Extended Properties=''";

OleDbConnection myConn = new OleDbConnection(myConnection);
myConn.Open();
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter();
myDataAdapter.SelectCommand = new OleDbCommand("select * from jh_ht_m", myConn);
OleDbCommandBuilder custCB = new OleDbCommandBuilder(myDataAdapter); DataSet custDS = new DataSet();
myDataAdapter.Fill(custDS, "jh_ht_m"); //code to modify data in dataset here
custDS.Tables["jh_ht_m"].Rows[1]["htmc"]="abcdefd"; //Without the OleDbCommandBuilder this line would fail
myDataAdapter.Update(custDS, "jh_ht_m"); myConn.Close();
return custDS;