Example #1
0
        static void Main(string[] args)
        {
            System.Uri svruri = new Uri("http://localhost:12345/SchedulerService.svc/Users(1)");

            SchedulerDBEntities.SchedulerDBEntities objDB = new SchedulerDBEntities.SchedulerDBEntities(svruri);

            DataServiceQuery <WCFClient.SchedulerDBEntities.Appointments> selDatas =
                objDB.Appointments;

            foreach (WCFClient.SchedulerDBEntities.Appointments appointments in selDatas)
            {
                Console.WriteLine("Appointments Subject: {0}", appointments.Subject.ToString());
            }

            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            System.Uri svruri = new Uri("http://localhost:12345/SchedulerService.svc/Users(1)");

            SchedulerDBEntities.SchedulerDBEntities objDB = new SchedulerDBEntities.SchedulerDBEntities(svruri);

            DataServiceQuery<WCFClient.SchedulerDBEntities.Appointments> selDatas =
                objDB.Appointments;

            foreach (WCFClient.SchedulerDBEntities.Appointments appointments in selDatas)
            {
                Console.WriteLine("Appointments Subject: {0}",appointments.Subject.ToString());
            }

            Console.ReadLine();
        }