나는 복합 기본 키와 엔티티를 가지고 있고, 나는 사용하여 단일 인스턴스를 검색 할 수 있습니다합성 기본 키를 사용하여 엔티티를 패치하는 방법은 무엇입니까?
GET https://example.com/service/Contacts(Foo=3,Bar=18)
가 어떻게 그것의 인스턴스를 업데이트 할 수 있습니다? 저도 같은 주소를 사용하여 패치를 시도 :
PATCH https://example.com/service/Contacts(Foo=3,Bar=18)
을하지만 난 다음 오류 얻을 :
{
"error" : {
"code" : "",
"message" : "The request is invalid.",
"innererror" : {
"message" : "key : Expected literal type token but found token 'Foo'.\r\n",
"type" : "",
"stacktrace" : ""
}
}
}
이 오류가 무엇을 의미 하는가를?
는 또한 속성 이름없이 시도,하지만 난 다른 오류 얻을 :이 경우 패치를 할 수있는 방법을
PATCH https://example.com/service/Contacts(3,18)
Cannot create an abstract class. Description: An unhandled exception occurred during the execution of the current web request. Please review the stacktrace for more information about the error and where it originated in the code.
어떤 생각을?
감사합니다.