修改了DataSet后,如何提交到数据库?
如题
------解决方案--------------------ds.update(table);
------解决方案--------------------dataadapter.update(dataset, "table ") 就ok 了啊
------解决方案--------------------conn.Open();                
   SqlCommand   comm   =   new   SqlCommand( "select   *   from   Cfd ",conn);    
   SqlDataAdapter   da   =   new   SqlDataAdapter(comm);                
   SqlCommandBuilder   sc   =   new   SqlCommandBuilder(da);                
   DataSet   ds   =   new   DataSet();                
   da.Fill(ds);                
   ds.Tables[0].Rows[0][1]   =    "aaa ";                
   da.Update(ds);      
------解决方案--------------------Update
------解决方案--------------------使用SqlDataAdapter,还有要构建SqlCommandBuilder,否则不会起作用。