Entity Framework and MVC 3: The relationship could not be changed because one or more of the foreign-key properties is non-nullable

前端 未结 3 709
野的像风
野的像风 2021-01-06 16:30

I have been trying to use one View for updating an object and all its child collections (based on one-to-many relationships in an SQL Server database with an Entity Framewor

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 17:13

    I think the error you are getting is related to: EF 4: Removing child object from collection does not delete it - why? You have created an orphan somewhere.

提交回复
热议问题