I changed my database model so that one of the tables foreign key accepted null values.
Afterwards I went to my .edmx
file and did the "Update model from database..." and after saving it all my class files representing the tables got deleted automatically.
If I revert my changes in the database and resave my .edmx
, the classes will reappear. But I really want this foreign key to be able to accept nulls. What could be causing this?