我在IPP .Net V3 for 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...
}想法?
发布于 2013-10-31 03:20:54
这才是对我有用的。
// 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"])
{
}诚挚的问候
https://stackoverflow.com/questions/19691564
复制相似问题