错误3004,用EF映射错误 [英] Error 3004, mapping error with EF
问题描述
错误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屋!