我像这样从数据库中检索数据:
OleDbDataAdapter dataAdapter
= new OleDbDataAdapter("SELECT * "
+ " FROM myTab1, myTab2"
+ " WHERE myTab1.col1 = myTab2.col3"
, connection);//OleDbConnection connection = new OleDbConnection();
DataTable dataTable = new DataTable("myDataTable");
BindingSource bindingSource = new BindingSource();
bindingSource.DataSource = dataTable;
dataAdapter.Fill(dataTable);
然后我用bindingSource
它来访问我程序中的数据,一切都很完美。但是在我进行了所有更改之后bindingSource
,我需要将它们保存到数据库中。我怎样才能做到这一点?