Exemplo n.º 1
0
 public IdentityUnitOfWork(string connectionString)
 {
     db             = new WorkPlaceContext(connectionString);
     _userManager   = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     _roleManager   = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
     _clientManager = new ClientManager(db);
 }
Exemplo n.º 2
0
 public Repository(WorkPlaceContext context)
 {
     db    = context;
     dbSet = context.Set <T>();
 }
Exemplo n.º 3
0
 public UserRepository(WorkPlaceContext db)
 {
     Database = db;
 }
Exemplo n.º 4
0
 public ClientManager(WorkPlaceContext db)
 {
     Database = db;
 }
Exemplo n.º 5
0
 public UnitOfWork(WorkPlaceContext db)
 {
     this.db = db;
 }
Exemplo n.º 6
0
 public EfUnitOfWork(WorkPlaceContext context, IRepository<Vacancy> vacancies)
 {
     _database = context;
     Vacancies = vacancies;
 }
Exemplo n.º 7
0
 public EfUnitOfWork(string connectionString, IRepository<Vacancy> vacancies)
 {
     Vacancies = vacancies;
     _database = new WorkPlaceContext(connectionString);
 }