I have a silverlight 4 RIA Domain Service. In one particular method I need to change one value in the database (among other things of course). To do this I get the entity, change the one value, then I need to save that change back to the DB.
I've tried calling the entity's generated update function, which just calls this.ObjectContext.myEntity.AttachAsModified(myENtity); but the change never gets back to the database.
How do I save values from the sever side (ie. the client never had this data)?
Turns out, attaching the object before or after the change makes no difference. The missing peice was :
this.ObjectContext.SaveChanges();