错误3004,用EF映射错误 [英] Error 3004, mapping error with EF

查看:974
本文介绍了错误3004,用EF映射错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,因为我的问题已经解决了,我正在飞过代码,直到现在:我已经遇到一个我甚至不能在Google上找到任何东西。以下是错误的文本:


错误3004:映射问题


从第937行开始的碎片:No
映射为属性
StoreItem.ItemPrice在Set StoreItems中指定。
当实体类型为
时,具有密钥(PK)的实体将不会
往返行为[psychoco_GodsCreationTaxidermyModel.StoreItem] F:\Projects\GodsCreationTaxidermySVN\GodsCreationTaxidermySData \GCTEntities .edmx 938 945 GodsCreationTaxidermy.Data



你需要任何代码示例让我知道

解决方案

错误意味着您导入到模型的表包含额外的列 ItemPrice 没有映射到您的实体。


Ok since my of my issues have been resolved,I was flying through the code, until now: I've now run into one I cant even find anything on Google for it. Here's the text of the error:

Error 3004: Problem in mapping

fragments starting at line 937:No mapping specified for properties StoreItem.ItemPrice in Set StoreItems. An Entity with Key (PK) will not round-trip when: Entity is type [psychoco_GodsCreationTaxidermyModel.StoreItem] F:\Projects\GodsCreationTaxidermySVN\GodsCreationTaxidermy.Data\GCTEntities.edmx 938 945 GodsCreationTaxidermy.Data

Of you need any code samples let me know

解决方案

The error means that your table imported to the model contains additional column ItemPrice which is not mapped to your entity.

这篇关于错误3004,用EF映射错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆