jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

Unexpected reaction when using remove and saveChanges

Open bstaley opened this issue 8 years ago • 1 comments

The documentation available for remove always calls saveChanges after calling remove. So I set it up like that and when invoked it would make two delete calls to the OData service. One after remove and one after saveChanges. For now I removed saveChanges and am only using remove. Is this the correct behavior?

bstaley avatar Mar 03 '17 14:03 bstaley

Are you calling remove on the Entity or the EntitySet? If you call remove directly on the Entity, the DELETE request will issue at once, and saveChanges is not needed.

ogrim avatar Apr 04 '18 07:04 ogrim