ado.net (c#实现) 数据集与数据库 同步问题 在线等!
……
DataSet ds = new DataSet("Employee");
……
ds.Tables[0].Rows[5].Delete();
……
da.Update(ds, "Employee");
visual studio的错误提示:Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return any key column information.
(提示1)数据库中的表没有主键!!!!!!!!!!)
(提示2)但是在ds.Tables[0]Rows中插入一行可以更新数据库!!!!!!)