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