In Entity Framework, I understand that if you make changes to the automatically created classes, you lose those chages on any kind of DB update. So, due to this you, only make your changes to these objects in a separate file using the Partial Class
syntax.
In a similar way, I had to change my actual .edmx file manually to add in a defining query as was described to do here.
Now, when I go to add in new tables from the DB, some of the changes I made to the edmx file are lost and I start getting errors in my project.
Is there a way to do something similar with the edmx file? - Maybe create a second XML under the same namespace that would therefore append on at load-time? And, if so, are there any examples of how to do this? EF is brand new to me and beating me up much more than I thought it would :)
Thanks!!