Entity framework - “Problem in mapping fragments”-error. Help me understand the explanations of this error

后端 未结 12 1780
不知归路
不知归路 2020-12-15 02:49

Error 3007: Problem in Mapping Fragments starting at lines 186, 205: Non-Primary-Key column(s) [WheelID] are being mapped

12条回答
  •  感情败类
    2020-12-15 03:05

    I had this problem for quite a different reason, and the message was slightly different; it didn't say "data inconsistency is possible because the corresponding conceptual side properties can be independently modified."

    I have a table involved in my model with a binary column where I store image data. I only want this data returned when I need it (performance is a feature), so I split the table using a method similar to this. Later on, I added a property to that table, then updated the model from the database. The wizard added the property to both entity types that refer to the table with the added property. I had to delete it from one of them to solve the error.

提交回复
热议问题