Exemplo n.º 1
0
        private static void SimpleQuery()
        {
            var service = new SimpleDataDynamicServices();

            var customers = service.GetCustomers();

            foreach (var customer in customers)
            {
                ObjectDumper.Write(customer);
            }
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 4
0
        private static void SimpleQuery()
        {
            var service = new SimpleDataDynamicServices();

            var customers = service.GetCustomers();

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