Exemple #1
0
        private static void SimpleQuery()
        {
            var service = new SimpleDataDynamicServices();

            var customers = service.GetCustomers();

            foreach (var customer in customers)
            {
                ObjectDumper.Write(customer);
            }
        }
Exemple #2
0
        private static void PagedQuery()
        {
            var service = new SimpleDataDynamicServices();

            var result = service.GetCustomers(2);

            foreach (dynamic customer in result.Items)
                ObjectDumper.Write(customer);

            ObjectDumper.Write(string.Format("There are {0} records matching the criteria", result.TotalRecords));
        }
Exemple #3
0
        private static void PagedQuery()
        {
            var service = new SimpleDataDynamicServices();

            var result = service.GetCustomers(2);

            foreach (dynamic customer in result.Items)
            {
                ObjectDumper.Write(customer);
            }

            ObjectDumper.Write(string.Format("There are {0} records matching the criteria", result.TotalRecords));
        }
Exemple #4
0
        private static void SimpleQuery()
        {
            var service = new SimpleDataDynamicServices();

            var customers = service.GetCustomers();

            foreach (var customer in customers)
                ObjectDumper.Write(customer);
        }