当我通过客户查询在线查询快速手册时,我似乎不断收到重复。下面是我的代码,我想知道为什么我会多次获得同一个客户。我正在使用分页功能来避免超时。
Dim tCust As New List(Of Intuit.Ipp.Data.Qbo.Customer)
Dim qcust As New CustomerQuery
qcust.IncludeJobs = False
qcust.LastUpdatedTime = FromDate
qcust.PageNumber = 1
qcust.ResultsPerPage = 10
Dim customers As IEnumerable(Of Intuit.Ipp.Data.Qbo.Customer) = qcust.ExecuteQuery(Of Customer)(GetServiceContext)
While customers.Count > 0
tCust.AddRange(customers)
customers = qcust.ExecuteQuery(Of Customer)(GetServiceContext)
qcust.PageNumber += 1
End While