Closed Gforse12 closed 4 years ago
Did you use the SaveChanges
method from the Microsoft.Data.Services.Client
NuGet package?
I used the SaveChanges
from the System.Data.Services.Client
of type SaveChanges(options As SaveChangesOptions) As DataServiceResponse
in DataServiceContext
Then also create the same issue in the repository.
When deleting a Entity and then calling SaveChanges i noticed that the server returned an error. While investigating with wireshark i discovered that the HTTP method was set to POST instead of delete. I debugged the values in the event SendingRequest2.
The screenshot below demonstrates the bug where ActualMehtod is POST and the method is DELETE (which is the right one):
There is a simple fix bij adding this line to the SendingRequest2 Event: