DbUpdateConcurrencyException when editing data that already exists even though I pass the variables needed
问题 I'm getting the DbUpdateConcurrencyException error even though I am passing the OrderID to the OrderItem form. It works on Create and Delete , but it keeps kicking me out for Edit . Can anyone please suggest a fix or let me know if I'm doing something wrong? I get this Concurrency Exception Error : System.Data.Entity.Infrastructure.DbUpdateConcurrencyException was unhandled by user code HResult=-2146233087 Message=Store update, insert, or delete statement affected an unexpected number of rows