使用System.Data.SQLite和LINQ to Entities,我无法进行简单的更新。System.Data.Entity.Infrastructure.DbUpdateConcurrencyException' occurred in EntityFramework.dll
Additional information: Storeupdate, insert, or delete statement affected an unexpected number of rows (
我一直在我的mvc应用程序中做内联编辑,但每当我试图更新一些数据库条目时,我都会得到这个错误(在标题中提到过)。下面是索引视图中的javascript代码: { var id = $('#lblID; });
这是我在控制器中的编辑 public ActionResult Edit([Bindvalidati
我试图实现乐观的并发性,我有一个时间戳列,并发模式设置为fixed。除了当我试图捕获异常时,它并没有进入预期的DbUpdateConcurrencyException捕获,而是进入了一般的异常捕获:catch (Exception e) //Error is actually being caught here正在捕获的错误如下:
存储update、<