Adding reference to entity causing Exception
问题 I have a model as shown below (created using Model-First approach). A book is a selling item. A DigitalDisc is a selling item. This is working fine and data is getting inserted correctly in database. I am adding a new entity named “Purchase”. One purchase contains multiple sellingitems. Once I added this new association and updated the database schema, I am getting the following exception. An error occurred while updating the entries. "The INSERT statement conflicted with the FOREIGN KEY