Closed bronielsen closed 6 years ago
We are working on this now.
As of Breeze 1.6.0, the server can now send a DeletedKeys property in the save result that tells the client to remove them from the cache. See the Saving Changes and DataServiceAdapter pages for (a little) more information.
This issue is related to this issue on SO: http://stackoverflow.com/questions/16651889/entity-deleted-on-the-server-will-remain-unchanged-on-the-client-default-breeze
In my applicaiton, I add entities (marked "Deleted") to the saveMap in BeforeSaveEntities on the server. They get deleted on the server, but are returned to the client with no indication that they have been deleted. The client therefore has no chance of knowing that a server-deleted entity should be removed from the client cache.
Is there any way to inform the client that an entity has been deleted on the server (in BeforeSaveEntities)?