首页 > 移动平台 > 详细

EF 新增数据时提示it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element

时间:2016-07-03 15:36:52      阅读:353      评论:0      收藏:0      [点我收藏+]

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.

检查该 Entity 对应的 表是否没有主键,设置表的主键,确保Entity的主键和表的主键一致

EF 新增数据时提示it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element

原文:http://www.cnblogs.com/yiliuyang/p/5637985.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!