Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may ha

Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=472540 for information on understanding and handling optimistic concurrency exceptions.


今天多线程批量操作表结构时EF发生的错误
这个问题发生的原因是你多次操作了一个数据源并且修改了
以独占方式操作表就可以解决这个问题。

你可能感兴趣的:(.NET)