Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Unexpected reaction when using remove and saveChanges #288

Open
bstaley opened this issue Mar 3, 2017 · 1 comment
Open

Unexpected reaction when using remove and saveChanges #288

bstaley opened this issue Mar 3, 2017 · 1 comment

Comments

@bstaley
Copy link

bstaley commented Mar 3, 2017

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?

@ogrim
Copy link

ogrim commented Apr 4, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants