因为它有一个DefiningQuery和否下; InsertFunction>元素存在的<&ModificationFunctionMapping GT;元件 [英] because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element
本文介绍了因为它有一个DefiningQuery和否下; InsertFunction>元素存在的<&ModificationFunctionMapping GT;元件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的应用程序中使用EF
I'm using EF in my application.
我尝试save\insert新记录映射表
I try to save\insert a new record to a mapping table
和收到以下错误:
无法更新EntitySet的'UsersLimitationToCountry,因为它有一个DefiningQuery并没有< InsertFunction>元素存在的<&ModificationFunctionMapping GT;元素来支持当前的操作。
我应该在自己的EDMX界定呢?怎么样?
Should I define it in the edmx myself? How?
推荐答案
我的很多一对多映射表不见了PK
My many-to-many mapping table was missing PK
,并将该问题被解决。
这篇关于因为它有一个DefiningQuery和否下; InsertFunction>元素存在的<&ModificationFunctionMapping GT;元件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文