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