protected void Page_Load(object sender, EventArgs e) { // Begin a data context - connection to the database this._ThisContext = new RoomSchedulerContext(); SetTodaysOccupancyPct(); }
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"); } } }