why does visual studio delete my classes when I update entity framework model
问题 I'm having a strange problem when I update my EF model (ver 5). It deletes all of the classes that belong to that model. My situation was like this. I changed the key column of two tables which have references to my primary table. Updating the model did not make these changes to the edmx, so I removed those three table (primary and two lookup tables), saved the edmx. Then updated the model and added those tables back in. Once I saved the model after updating it, VS deleted all of the class