Is it possible to refresh only one entity in entity framework designer? Every time I refresh model from database, it refreshes all entities. The problem is that this mechanism doesn't recognize开发者_如何学Go properly primary keys in views, so I have to correct it manually. Am I missing something?
No, you're not missing anything. When you update model using the GUI designer, the entire storage schema is regenerated. At least, that's how it works in Entity Framework 1.
I can't tell you if you can or can't do it, but I have one clue how to figure it out. http://code.msdn.microsoft.com/EdmGen2
EdmGen2 contains source code and dll probably with functionalities from usual EdmGen. Unfortunately I didn't have time to investigate this further. Hope this helps.
精彩评论