Unable to update the EntitySet 'Users' because it has a DefiningQuery ...

[已解决] Unable to update the EntitySet 'Users' because it has a DefiningQuery ...

100
[软件及编程 > C# > LINQ > LINQ to Entities]
使用EF操作关联表(多对多,*-*),出现这个错误:Unable to update the EntitySet 'Users' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

如何解决?
提问时间:2011/1/14 21:47:44 | 提问者:zsu | 悬赏:100 | 浏览:1056
最佳答案
1、查看一下是不是没有设置主键?
2、确定没有问题之后,用xml工具或记事本,打开.edmx文件,删除<DefiningQuery>节点内容,根据周边的配置,灵活调整其父节点的属性
回答时间:2011/1/19 23:01:36 | 回答者:56max
其他参考答案(0)
提交失败!请检查错误!错误信息:

注:以上所有信息由网友提供,仅供交流、参考,均不代表盛派网络言论,如果有任何问题或不妥,请立即联系我们

以下信息或许对您有用: