c# - Updating a Detached Entity Instance using Entity Framework 4.0 -


i utilizing entity framework 4.0 , wcf. new using entity framework , more familiar nhibernate. however, concerned detached instances of objects when performing update.

i have looked on various websites retrieve object, attach instance context, , set properties modified leaves 2 problems:

  1. all fields updated in database (not huge problem, adds overhead each update statement).
  2. many of examples not handle situations may have ienumerable property objects need updated (this requirement).

is there 'best practice' example of how handle updating detached entity instances? guidance appreciated.

brandon, able make use of self-tracking entities template? designed make handling updates of detached entities easier. http://msdn.microsoft.com/en-us/library/ee789839.aspx


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -