Esempio n. 1
0
 /// <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;
 }
Esempio n. 3
0
 public ReviewRepository(HotelServicesContext context)
 {
     this.db = context;
 }
Esempio n. 4
0
 public ClientManager(HotelServicesContext db)
 {
     Database = db;
 }