Deleting the entity in the entity model gives foreign key errors


Deleting Entity in Entity Model gives Foreign Key errors

Error 92 Error 3013: Problem in Mapping Fragments starting at lines 5023, 5183, 5507: Missing table mapping: Foreign key constraint 'FK_TableName' from table TableName(ID) to table Other_TableName (ID): no mapping specified for the table TableName C:\MyDirector\MyModel.edmx 5024 15 MyNamespace

any idea how i get rid of this

Had to edit the edmx file in notepad and remove every Association and AssociationSet where i found 'FK_TableName'