开发者

Update model from database - refresh one table

开发者 https://www.devze.com 2022-12-09 02:58 出处:网络
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开发者

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消