0

我在 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...
}

想法?

4

1 回答 1

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"])
                {
                }

此致

于 2013-10-31T03:20:54.390 回答