1
是否可以在OData中使用此代碼?oData中Where子句
IQueryable<CallLogInfo> CallLogInfos = _callCenterServiceAccessor.CallLogInfos.Where(x => x.LogId == logid);
var log = CallLogInfos.ToList();
return log.Any();
我檢查它產生了我的請求,我看到這一點:
http://services/CallCenter/CallCenterDataService.svc/CallLogInfos(1364974501.4)
所以得到這個錯誤:
<m:message xml:lang="en-US">Resource not found for the segment 'CallLogInfo'.</m:message>
但是當我手動對這個請求的URL的請求:
http://services/CallCenter/CallCenterDataService.svc/CallLogInfos
它確定。