OData / ODataSamples

Samples: For ODataLib, OData Web API, RESTier, etc.
http://odata.github.io/
Other
293 stars 222 forks source link

Creating Entity in People do not update EntitySet #219

Open quanterion opened 1 year ago

quanterion commented 1 year ago

TripPin RW test service for OData doesn't show added entities. When I add entity (Person) via POST https://services.odata.org/V4/(S(xxx))/TripPinServiceRW  service responses with 204 Created. But listing of persons via GET https://services.odata.org/V4/(S(xxx))/TripPinServiceRW remains the same and I can't see added person.

mikepizzo commented 1 year ago

Code appears to attempt to add the person to the datasource instance. Perhaps the instance isn't being maintained, so it is adding to a different instance than it is retrieving from?

I also tried against https://services.odata.org/TripPinRESTierService, but got a server error (Value cannot be null. Parameter name: edmEntityObject) when posting the person (which we should create a separate issue to investigate).