私はPriceとPriceGroupエンティティを持っており、このように同時に両方のエンティティを更新したいと考えています: DataContext.AddObject( "Prices/PriceGroup"、oEditPrices); DataContext.UpdateObject(oEditPrices); DataContext.SaveChanges();WcfデータサービスエンティティのUpdateObject
giving me error
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-US">The request URI is not valid. Since the segment 'Prices' refers to a collection, this must be the last segment in the request URI. All intermediate segments must refer to a single resource.</message>
</error>
HTTPトレースを取得してここに投稿できますか?たとえば、Fiddlerを使用します。 –
問題は唯一の価格/ PriceGroup2つのエンティティを一度に更新するので、私は上記のように1つのオブジェクトで2つのエンティティを更新するための最良の方法は何かを知りたい –