开发者

WCF DS client return less results than the same request in the browser

Strange thing:

var data = GetDataClient(); // trivial code
var query = data.UserTrackers.Expand("TodayNews");
Console.WriteLine(query);
var trackers = query.ToArray(); 
// only 3 results despite the fact that Fiddler shows the resonse with 开发者_如何学Go10 instances. 


My guess is this is because the user tracker instance is already in the client before you queried, and the default MergeOption is AppendOnly.

Can you try changing the MergeOption to OverwriteChanges and see what happens?

Hope this helps.

Thanks Pratik

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜