LukLed
LukLed

Reputation: 31842

Update model from database - refresh one table

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?

Upvotes: 2

Views: 2554

Answers (2)

Craig Stuntz
Craig Stuntz

Reputation: 126547

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.

Upvotes: 2

kubal5003
kubal5003

Reputation: 7254

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.

Upvotes: 2

Related Questions