Пример #1
0
        public void GetAllReservations()
        {
            List <Reservation> myReservationsTest = new List <Reservation>();

            ReservationSQLDAL mySQLTest = new ReservationSQLDAL(connectionString);

            myReservationsTest = mySQLTest.GetAllReservations();
        }
Пример #2
0
        private void GetReservations()
        {
            ReservationSQLDAL dal = new ReservationSQLDAL(connectionString);

            List <Reservation> reservations = dal.GetAllReservations();

            Console.WriteLine();

            foreach (var reservation in reservations)
            {
                Console.WriteLine();
                Console.WriteLine(reservation);
            }
        }