Unable to update the EntitySet 'Users' because it has a DefiningQuery ...
[已解决] Unable to update the EntitySet 'Users' because it has a DefiningQuery ...
当前页面:http://www.senparc.com/SZD-251
{ 收藏当前页面 }
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.
如何解决?
如何解决?
最佳答案
1、查看一下是不是没有设置主键?
2、确定没有问题之后,用xml工具或记事本,打开.edmx文件,删除<DefiningQuery>节点内容,根据周边的配置,灵活调整其父节点的属性
2、确定没有问题之后,用xml工具或记事本,打开.edmx文件,删除<DefiningQuery>节点内容,根据周边的配置,灵活调整其父节点的属性
回答时间:2011/1/19 23:01:36
| 回答者:56max
其他参考答案(0)
提交失败!请检查错误!错误信息:
以下信息或许对您有用:
- [已解决] 40 无法创建类型为“结束类型”的常量值。此上下文仅支持基元类型(“例如 Int32、... 2010/9/19 22:28:05
- [已解决] 5 Linq to Entities是否支持SQLite数据库? 2010/9/9 23:00:55
- [已解决] 5 System.NotSupportedException: 2010/5/30 11:48:41
- [已解决] 0 The ConnectionString property has not be... 2010/5/16 23:04:39