locked
Silverlight - Issue with updating an object in WCF RIA Services and Entity Framework RRS feed

  • Question

  • I have an application that uses Silverlight, RIA service and Entity Framework 4.2. The entity framework model in my application contains a view from sql server database that has an EntityKey setup and mapped up to 3 stored procedure in the entity framework model for Insert, Update and Delete.  I have created domain service class with enabling editing, it has methods to query the data as well as inserting, updating and deleting the entity objects. I am being able to Query, Insert new objects and Update newly inserted objects, but when I try to update an existing object (Queried object) it does not update nor does it error. The submitchange call on the client just seems to go to the generated code and return back to the VM and not make the call to the server side. On return to VM the SubmitOperation.ChangeSet for ModifiedEntities/ AddedEntities / RemovedEntities count show 0 .

    I have been going in circles with this one, any help is appreciated.

    Thanks

    Wednesday, December 26, 2018 2:40 PM