Row not found or changed LINQ C# error on simple statement

后端 未结 4 744
执念已碎
执念已碎 2021-02-01 20:14

First of all, there is no chance that this is a multi-user issue, as I\'m working locally on a dev version of the database.

I am getting the not very explanatory R

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 21:16

    I had this issue even when the database schema and dbml matched exactly. The issue was I was trying to change an entity and insert entities in a single SubmitChanges statement. I fixed it by doing SubmitChanges on each operation instead of all at once.

    This was all in a transaction scope so that may have something to do with it but I'm not sure.

提交回复
热议问题