I am using MVC3, C# 4.0 and Entity Framework in Visual Studio 2010. I have a complex data entity (one base type which contains two sub-entities; each of these then contain further entities).
I can see how to do a bulk update of everything but wonder what is the best practice for updating this when only a few fields may have changed.
Thanks in advance
If the properties of multiple sub entities have changed, I would handle it as an update to the complex data entity. If only one of the sub entities needs to be updated, then I would handle it as an update to only that specific entity. It’s really a case by case basis type of situation.