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:
- all fields updated in database (not huge problem, adds overhead each update statement).
- 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
Post a Comment