錯誤原因:不能添加其鍵已在使用中的實(shí)體。Customers是實(shí)體類 DataClasses1DataContext dd = new DataClasses1DataContext(); public static void UpdateRecord(Customers localTable) { try { dd.Customers.Attach(localTable); dd.Refresh(RefreshMode.KeepCurrentValues, localTable); dd.SubmitChanges(ConflictMode.FailOnFirstConflict );}不能添加其鍵已在使用中的實(shí)體。請問怎么?
- 2 回答
- 0 關(guān)注
- 285 瀏覽
添加回答
舉報(bào)
0/150
提交
取消