首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法更新EntitySet

无法更新EntitySet
EN

Stack Overflow用户
提问于 2013-01-04 21:58:57
回答 1查看 656关注 0票数 1

以下代码:

代码语言:javascript
复制
sistema_log_openedPdfs entity = new sistema_log_openedPdfs();
entity.idUser = guid;
entity.path = fullAbsPath;
context.sistema_log_openedPdfs.Add(entity);
context.SaveChanges();

我得到了一个疯狂的例外:

[UpdateException: Unable to update the EntitySet 'sistema_log_openedPdfs because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.]

我找不到任何帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-01-04 22:02:50

您是否忘记了为sistema_log_openedPdfs创建主键?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14158565

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档