0
Odata 소스에서 전체 데이터 목록을 가져 오려고하는데 getContinuation이 작동하지 않는 것 같습니다 ... 지금까지 가지고있는 코드는 다음과 같습니다 :getContinuation에 대한 코드를 가져올 수 없습니다.
var nwd = new OdataServiceReference.NorthwindEntities(new Uri("http://services.odata.org/Northwind/Northwind.svc/"));
var res1 = nwd.Orders //response
.OrderBy(o => o.OrderID)
.Select(o => new
{
o.OrderID,
o.Customer.CompanyName,
o.Customer.ContactName,
o.Employee.FirstName,
o.Employee.LastName,
o.Order_Details
}) as DataServiceQuery;
var response = (QueryOperationResponse<Order>)
nwd.Execute<Order>(new Uri(res1.ToString()));
//var response = res1.Execute() as QueryOperationResponse<OdataServiceReference.Order>;
var res1List = new List<Order>(response);
DataServiceQueryContinuation<Order> token;
while ((token = response.GetContinuation()) != null)
{
response = nwd.Execute<Order>(token) as QueryOperationResponse<Order>;
res1List.AddRange(response);
}
나는 다음과 같은 오류가 점점 오전 : 어떤 도움이 좋을 것
을!
나는 그것을 맹세했다. .. hahah는 오래되었던 코드와 함께 있었음에 틀림 없었다. 감사! – Shamsun