我再次检查错误,发现报错是因为access数据库中的小数列导致的。它与舍入数字并将这些数字与我从表中获取的第一个数据进行比较有关。
最佳答案
解决方案是使用:
cb = new System.Data.OleDb.OleDbCommandBuilder(DbAdapter);
cb.ConflictOption = ConflictOption.OverwriteChanges;
DbAdapter.UpdateCommand = cb.GetUpdateCommand();
DbAdapter.Update(DbData);
关于c# - 小数列,并发冲突 : the UpdateCommand affected 0 of the expected 1 records,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9779543/