Example #1
0
 public EFUnitOfWork(string connectionString)
 {
     db            = new opContext(connectionString);
     userManager   = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     roleManager   = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
     clientManager = new ClientManager(db);
 }
Example #2
0
 public StatisticRepository(opContext context)
 {
     db = context;
 }
Example #3
0
 public ClientManager(opContext db)
 {
     Database = db;
 }