If you delete an entry from a table (say, "blah") that has other relationships with other tables (xyz, abc). By default, the database will prevent the row from being deleted in "blah" if one of the other tables has related rows.
Solution No. 1:
At first you can manually delete the related lines, this may take a lot of work.
Solution No. 2:
a simple solution is to configure the database to automatically delete them when you delete the string "blah".
Follow this, open the database diagram and click on the relationship properties

In the Properties window, expand INSERT and UPDATE and set the DeleteRule property to Cascade.

Save and close the chart. If you are asked if you want to update the database, click Yes.
To make sure that the model keeps the entities in memory in synchronization with what the database does, you must establish the appropriate rules in the data model. Open SchoolModel.edmx, right-click the association string between "blah" and "xyz," and then select "Properties."
In the Properties window, expand INSERT and UPDATE and set the DeleteRule property to Cascade.
Solution and images taken from http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-2
source share