I have a WCF service that uses the entity framework to retrieve records from the database and map them to POCO objects. These POCO objects are then returned to the client application.
Lets say the client application changes some properties on one of these POCO objects then sends it back to the WCF service to be saved. As far as I can see this POCO object is then completely disconnected from the entity framework context. The way I currently save this is to create a new context object and retrieve the POCO object from the database again, I then copy property values of the POCO object passed in to the method in to the POCO object just retrieve from the database then call save on the context. Is this the best way to be doing this or is there a simpler method?