Example #1
0
 private static void GetBooking()
 {
     SqlOption option = new SqlOption { ConnectionString = "Server=localhost;Port=3306;Database=yue;Uid=root;Pwd=123456;" };
     BookingRepository bookingRepository = new BookingRepository(option);
     BookingService bookingService = new BookingService(bookingRepository);
     var booking = bookingService.Get(100, true);
 }