比如:
SQLAdapter adp1 = new SQLAdapter ("select * from Table1",conn);
SQLAdapter adp2 = new SQLAdapter ("select * from Table2",conn);DataSet ds = new DataSet();
adp1.fill(ds,"Table1");
adp2.fill(ds,"Table2");......
之后对Table1和Table2进行操作SqlCommandBuilder cb1 = new SqlCommandBuilder (adp1);
SqlCommandBuilder cb2 = new SqlCommandBuilder (adp2);adp1.update(ds,"Table1");
adp2.update(ds,"Table2");问题1:如果Tabel1和Table2没有联系,那么我这种做法可以更新吗(在构造SqlCommandBuilder 前面没有再次创造Adapter 对象来告诉它要更新哪张表,只是延用以前的,我认为可以)
2。如果表间有联系,但是我更新的方面没有触发到这些联系,能更新吗?