Deferred delete and root objects #4110
-
When we call delete and Save on root objects (instead of immediate delete), the Save returns the same root object but with a status of IsNew. Is there a way we could set the root object as new and empty object? possibly by calling DataPorta.Create in the Dataportal delete method? Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The data portal is returning the object as I'd recommend just ignoring the result of the save method and calling create from the client. Another alternative to calling create on the client, is to rethink the UI/user workflow. Why are you even using the result of the save method at all, and does it make sense within the context of the user workflow? Yet another alternative is in the server-side delete operation method, you could "blank" or clear all the properties in the object, so when the object is returned to the caller as being "new", it also contains only default values for the properties. |
Beta Was this translation helpful? Give feedback.
Like this: