我有一個OData的查詢像這樣OData的延續,當項目目標框架是3.5
var Info= from p in context.Information
where p.InformationSource.Equals("TopSecret")...
order by p.Date
select p;
我經歷了數據這樣
foreach (var info in Info) {...}
的問題是,如果項目的目標框架。 NET Framework 4.0我可以做到這一點
while (info.InformationSource.Continuation != null)
{
info.InformationSource.Load(context.Execute(info.InformationSource.Continuation));
}
因爲product.InformationSource類型DataServiceCollectio n
但在3.5框架中它是類型集合,我不能這樣做。繼續。
問題是:當使用目標框架爲3.5時,如何從Feed中獲取所有數據?
隨着3.5和4.0我得到的信息(300),但與4.0我可以使用.Continuation相同數量的對象獲取其餘。隨着3.5我不能這樣做,因爲類型(集合) – Vili 2011-05-20 05:14:01