码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2016-07-03 15:37:43      阅读:351      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!