/// <summary> /// Constructor with the name of the connection, which will then be passed to the data context constructor /// </summary> /// <param name="connectionString"></param> public EFUnitOfWork(string connectionString) { db = new HotelServicesContext(connectionString); userManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); roleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); clientManager = new ClientManager(db); }
public BookingApplicationRepository(HotelServicesContext context) { this.db = context; }
public ReviewRepository(HotelServicesContext context) { this.db = context; }
public ClientManager(HotelServicesContext db) { Database = db; }