InvalidOperationException when calling SaveChanges in .NET Entity framework

后端 未结 8 1232
小蘑菇
小蘑菇 2020-12-03 17:22

I\'m trying to learn how to use the Entity framework but I\'ve hit an issue I can\'t solve. What I\'m doing is that I\'m walking through a list of Movies that I have and ins

8条回答
  •  渐次进展
    2020-12-03 18:08

    Also Check if you set the "Is Identity" property for another column to "yes" and you are inserting a duplicated values into it.

提交回复
热议问题