Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to refresh model from database selecting just one table using Entity Framework 4.3

My question is similar to this one but using Entity Framework 4.3.

Is it possible to refresh only one entity in entity framework [in any way]?

We are a big team working on a big database and usually I need to update just one part of the DB (the one I'm working on) as there are probably unfinished areas on it.

Any ideas?

like image 720
Ignacio Soler Garcia Avatar asked Dec 11 '25 01:12

Ignacio Soler Garcia


1 Answers

You can't. When you go to Refresh model VS read all objects and refresh it... it allways refresh all objects. One another solution are divide your table into several models, grouped by modules or some like that. Then, you can update just one model by time.

like image 163
Tiago Gouvêa Avatar answered Dec 12 '25 15:12

Tiago Gouvêa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!