Data Conflict in LINQ

后端 未结 7 2060
不知归路
不知归路 2020-12-13 02:33

When making changes using SubmitChanges(), LINQ sometimes dies with a ChangeConflictException exception with the error message Row not found

7条回答
  •  一整个雨季
    2020-12-13 03:25

    The error "Row not found or changed" also will appear sometimes when the columns or types in the O/R-Designer do not match the columns in the SQL database, especially if one column is NULLable in SQL but not nullable in the O/R-Designer.

    So check if your table mapping in the O/R-Designer matches your SQL database!

提交回复
热议问题