Retreve Customer List using QBO SDK

Retreve Customer List using QBO SDK C#.NET Code

Retreve Customer List using QBO SDK C#.NET Code
                    
QueryService customerQueryService = new QueryService(serviceContext);
customers = customerQueryService.Select(c => c).ToList();

//Maximum Number of Entities in a Response
//
//The maximum number of entities that can be returned in a response is 1000.  If the result size is not specified, the default number is 100. If a query //returns many entities, fetch the entities in chunks, as described in Pagination.  To determine the number of entities that a particular query returns, //probe by using the COUNT keyword in the query.   See Count for details. 

// Using STARTPOSITION 
SELECT * FROM Invoice WHERE TotalAmt < '1000.00' STARTPOSITION 1 MAXRESULTS 10

//Getting more than 100 customers
QueryService customerQueryService = new QueryService(serviceContext);
// updated
List customers = customerQueryService.ExecuteIdsQuery("SELECT * FROM Customer MaxResults 1000").Select(c => c).ToList();