EF 4.错误11009:当使用查询视图和函数maping进行cud操作时,不映射属性xxx [英] EF 4. Error 11009: Property xxx is not mapped when using query view and function maping for cud operations
问题描述
我正在使用queryView将一些表映射到实体。为插入,更新和删除操作添加函数映射后,我得到一堆错误,每个属性一个:"错误11009:属性xxx未映射",其中xxx是属性的名称。在添加这些功能之前,没有错误。有趣的是,项目构建和模型工作。我可以插入,更新和删除实体而不会出现任何错误。但它看到很长的错误列表很烦人。也许任何人都有相同的想法可能有什么问题,并可以告诉如何解决它。
谢谢
Hi,
I'm using queryView to map some tables to entity. After adding function mapping for insert, update and delete operations I get a bunch of errors, one for each property: "Error 11009: Property xxx is not mapped", where xxx is name of the property. Before adding these functions there is no errors. Interestingly that project builds and model works. I can insert, update and delete entities without any errors. But it annoys seeing long error list. Maybe anyone has same ideas what may be wrong and can tell how to fix it.
Thanks
推荐答案
嗯 - 好吧,实体框架设计师不支持QueryViews,所以我怀疑它"思考"了您尚未映射您的属性。尝试设置"在构建时验证"设计师表面上的属性为"False"。
Hm - well, the entity framework designer does nto support QueryViews, so I suspect that it "thinks" that you have not mapped your properties. Try setting the "Validate on Build" property on the designer surface to "False".
HTH, Noam
HTH,
Noam
这篇关于EF 4.错误11009:当使用查询视图和函数maping进行cud操作时,不映射属性xxx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!