ODataSamples icon indicating copy to clipboard operation
ODataSamples copied to clipboard

Is 'Trips' NavigationProperty on 'Person' EntityType' a containment navigation property ?

Open sumitsharma0999 opened this issue 8 years ago • 2 comments

There is no EntitySet corresponding to the EntityType 'Trip'. So I believe in order to add a trip for a person, we need to send to POST request to the Trips's url through person. e.g.

POST /People('russellwhyte')/Trips

This is how we add a record for containment navigation property. According to OData v4 spec (http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part3-csdl/odata-v4.0-errata03-os-part3-csdl-complete.html#_Toc453752542), ContainsTarget should be true for a containment navigation property. ContainsTarget also isn't set for Trips navigation property.

Is it a containment navigation property ?

sumitsharma0999 avatar Mar 30 '17 14:03 sumitsharma0999

A gentle ping..

sumitsharma0999 avatar Apr 24 '17 12:04 sumitsharma0999

Which sample did you run? I tried the two under 'Scenarios/TripPin/', both show ContainsTarget=true

vabc3 avatar Apr 26 '17 14:04 vabc3