Example #1
0
 public FormAddEditReservation(Reservation reservation)
 {
     InitializeComponent();
     this.context              = new BookATableContext();
     this.reservation          = reservation;
     this.repositoryRestaurant = new RestaurantRepository();
     this.repositoryUser       = new UserRepository();
     this.RefreshControls();
 }
Example #2
0
 public UnitOfWork()
 {
     this.context     = new BookATableContext();
     this.transaction = this.context.Database.BeginTransaction();
 }
 public UnitOfWork()
 {
     DbContext = new BookATableContext();
 }