I have a situation where I'm saving data from a WPF client application by calling a Web API method. The flow is that the WPF client calls a Get Web API method, manipulates a bunch of the data on the client, and then calls a Post Web API method to save the data. It's a single unit of work, and it's a pretty complex object model with several child objects.
I thought that simply calling the Attach method on the data context would take care of syncing all of the changes, but that doesn't appear to be the case. My question is, how do I save all of this data without writing some sort of horrendous synchronization logic? It seems like EF should be able to handle this scenario.