public static List <Customer> getCustomerList(RestProfile profile)
        {
            ServiceContext          serviceContext       = getServiceContext(profile);
            QueryService <Customer> customerQueryService = new QueryService <Customer>(serviceContext);

            return(customerQueryService.Select(c => c).ToList());
        }
示例#2
0
        private DataTable GetFarmAccessTable(int farm_id)
        {
            var service  = new QueryService();
            var criteria = GetFarmAccessCriteria(farm_id);

            return(service.Select(criteria.ToSerializableCriteria()));
        }
示例#3
0
        public static List <Employee> getEmployeeList(IppRealmOAuthProfile profile)
        {
            ServiceContext          serviceContext       = getServiceContext(profile);
            QueryService <Employee> employeeQueryService = new QueryService <Employee>(serviceContext);

            return(employeeQueryService.Select(c => c).ToList());
        }
示例#4
0
        public void PredefinedPropertySetTest()
        {
            QueryService <Customer> customerService = new QueryService <Customer>(serviceContext);
            var query = customerContext.Select(c => new { c.GivenName, c.Id });

            foreach (var item in query)
            {
            }
        }
        public IEnumerable <Customer> GetAllCustomers()
        {
            var serviceContext = QbApiHelper.GetServiceContext();

            var query = new QueryService <Customer>(serviceContext);

            var customers = query.Select(c => c).ToList();

            return(customers);
        }
示例#6
0
        public IEnumerable <Invoice> GetAllInvoices()
        {
            var serviceContext = QbApiHelper.GetServiceContext();

            var query = new QueryService <Invoice>(serviceContext);

            var invoices = query.Select(c => c).ToList();

            return(invoices);
        }
 public static List<Employee> getEmployeeList(IppRealmOAuthProfile profile)
 {
     ServiceContext serviceContext = getServiceContext(profile);
     QueryService<Employee> employeeQueryService = new QueryService<Employee>(serviceContext);
     return employeeQueryService.Select(c => c).ToList();
 }
 public static List<Customer> getCustomerList(RestProfile profile)
 {
     ServiceContext serviceContext = getServiceContext(profile);
     QueryService<Customer> customerQueryService = new QueryService<Customer>(serviceContext);
     return customerQueryService.Select(c => c).ToList();
 }