首页 > 代码库 > EntityFramework错误:Unable to update the EntitySet because it has a DefiningQuery

EntityFramework错误:Unable to update the EntitySet because it has a DefiningQuery

错误截图:

技术分享

解决方法:

在所操作的数据库表中添加一个主键即可解决此问题

EntityFramework错误:Unable to update the EntitySet because it has a DefiningQuery