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);
 }
示例#2
0
 public UserRepository(WorkBaseContext db)
 {
     Database = db;
 }
示例#3
0
 public EFUnitOfWork(WorkBaseContext context)
 {
     database = context;
 }
示例#4
0
 public EFUnitOfWork(string connectionString)
 {
     database = new WorkBaseContext(connectionString);
 }
示例#5
0
 public ClientManager(WorkBaseContext db)
 {
     Database = db;
 }
示例#6
0
 public GenericRepository(WorkBaseContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }