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 properly primary keys in views, so I have to correct it manually. Am I missing something?
A:
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.
kubal5003
2009-10-26 12:04:59
+1
A:
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.
Craig Stuntz
2009-10-26 14:31:33
CTP versions seemed to have this functionality (http://tinyurl.com/yfxuczo). This is huge flaw, specially in bigger models. I hope they will implement it in EF4 designer.
LukLed
2009-10-26 15:46:06
You should consider filing a connect report, then. That said, EF 4 does have other ways of customizing your model. You might consider code-only, given what you're doing.
Craig Stuntz
2009-10-26 15:47:45
I like GUI designer. It does its job well, but has some flaws. When corrected, I'll need nothing more.
LukLed
2009-10-27 22:58:58
In EF 4 you could consider model-first, then.
Craig Stuntz
2009-10-28 02:12:53