Example #1
0
        static void Main(string[] args)
        {
            CloudData cd = new CloudData("http://fhdist.com/fishbowl/", "2497!NjSDKJ");
            cd.SetTimeout(10000);

            var rs = cd.Query("select * from oc_country");            
            Console.WriteLine(rs.StopWatch.Elapsed.ToString());

            var obj = cd.Query<List<TestObject>>("select * from oc_country limit 10");
            if(obj.Data != null)
                Console.WriteLine("Records: " + obj.Data.Count); 

            var test = cd.Execute("update oc_country set address_format = 'TEST' where country_id = 1");
            Console.WriteLine(test.Executed);
            Console.WriteLine(test.StopWatch.Elapsed.ToString());

            Console.ReadLine();
        }