Creating new entities with foreign keys required

Dec 21, 2011 at 10:12 PM

I looked at the crud examples but i simply cant figure out how to create entities with required foregin key fields. anyone here got a quick sample for that?


Dec 23, 2011 at 12:44 PM

Oki i figured it out,
if Project is a navigation property

project: { __metadata: { uri: "uri to the entity you want to relate to"} }

May 7, 2015 at 8:55 AM
Hello imageicon,

i am fighting since days to insert an employee ( table emp ) which have a foreign key to department ( table dept ).
Can help and give me some more Details about your solution.
Thank you very much.