我在IPP .Net V3中找到CDCQuery的文档和对象,但似乎无法使其正常工作。
这是我正在尝试做的事情:
QueryService<Intuit.Ipp.Data.CDCQuery> myQueryService = new QueryService<Intuit.Ipp.Data.CDCQuery>(myServiceContext);
DateTime updateDate = new DateTime(2013, 10, 30);
var recs = myQueryService.Select(c => c).Where(c => c.ChangedSince > updateDate);
foreach (var rec in recs)
{
// do something with the results...
}
想法?
答案 0 :(得分:0)
这对我有用。
// Not used, but shown anyway...
CDCQuery cdcQuery = new CDCQuery();
cdcQuery.ChangedSince = dtUpper;
// This does the work...
DataService commonService = new DataService(context);
List<IEntity> lstEnt = new List<IEntity>();
lstEnt.Add(new Customer());
IntuitCDCResponse cdcResp = commonService.CDC(lstEnt, dtUpper);
if (cdcResp.entities.ContainsKey("Customer"))
foreach (Customer qboi in cdcResp.entities["Customer"])
{
}
最好的问候