私は複合主キーを持つエンティティを持っている、と私は使用しての単一のインスタンスを取得することができます。コンポジット主キーでエンティティをパッチングする方法は?
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.
私はこのケースでPATCHを行うことができますどのように任意のアイデアを?
ありがとうございます。