custDA.Fill(custDS, "Customers ");//完成填充后custDS发生变化后(仅修改)如何更新.用下面命令也不成功.
updateCMD.Update(custDS); //更新数据库中所有的表
updateCMD.Update(custDS, "Customers "); //更新某个表
------解决方案--------------------------------------------------------
1.确定有Update 的命令。2.ds.AcceptChanges();
------解决方案--------------------------------------------------------
System.Data.SqlClient.SqlCommandBuilder cb = new System.Data.SqlClient.SqlCommandBuilder(custDA);
custDA.Update(ds);