public IdentityUnitOfWork(string connectionString)
 {
     db            = new WorkBaseContext(connectionString);
     userManager   = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     roleManager   = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
     clientManager = new ClientManager(db);
 }
Beispiel #2
0
 public UserRepository(WorkBaseContext db)
 {
     Database = db;
 }
Beispiel #3
0
 public EFUnitOfWork(WorkBaseContext context)
 {
     database = context;
 }
Beispiel #4
0
 public EFUnitOfWork(string connectionString)
 {
     database = new WorkBaseContext(connectionString);
 }
Beispiel #5
0
 public ClientManager(WorkBaseContext db)
 {
     Database = db;
 }
Beispiel #6
0
 public GenericRepository(WorkBaseContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }