How do you use the tryGetEntity method when you have composite keys?
Can it be done, if so what is the syntax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The method takes the URL pointing to the entity, not key properties. Now most of OData servers use a convention to address entities by using key properties in the URL. That convention is described here http://www.odata.org/developers/protocols/uri-conventions#AddressingEntries. But I would strongly suggest against trying to compose that URL yourself (it’s easy to get it wrong).
Maybe if you posted what is the scenario you want to get working, a better answer could be possible.