Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // Begin a data context - connection to the database
            this._ThisContext = new RoomSchedulerContext();

            SetTodaysOccupancyPct();
        }
Ejemplo n.º 2
0
        static void Room11Test()
        {
            using (var context = new RoomSchedulerContext())
            {
                var room = from r in context.Rooms
                           where r.Address == "11"
                           select r;

                if (room.Count() == 1)
                {
                    Debug.WriteLine("Test passed, found room 11");
                }
                else
                {
                    Debug.WriteLine("Test Failed");
                }

            }
        }