public UnitOfWork(SsoDbContext context) { _context = context; UserRepository = new UserRepository(_context); RoleRepository = new RoleRepository(_context); UserRoleRepository = new UserRoleRepository(_context); ActionRepository = new ActionRepository(_context); RoleActionRepository = new RoleActionRepository(_context); ApplicationRepository = new ApplicationRepository(_context); RoleApplicationRepository = new RoleApplicationRepository(_context); SecurityLevelRepository = new SecurityLevelRepository(_context); SecurityModeRepository = new SecurityModeRepository(_context); SecurityLevelModelRepository = new SecurityLevelModelRepository(_context); SettingRepository = new SettingRepository(_context); SessionRepository = new SessionRepository(_context); UserRestrictedIpRepository = new UserRestrictedIpRepository(_context); HardwareTokenCodeRepository = new HardwareTokenCodeRepository(_context); MobileVerificationCodeRepository = new MobileVerificationCodeRepository(_context); RoleGroupRepository = new RoleGroupRepository(_context); AuthenticationStepRepository = new AuthenticationStepRepository(_context); }
public MobileVerificationCodeRepository(SsoDbContext context) : base(context) { _context = context; }
public UserRoleRepository(SsoDbContext context) : base(context) { _context = context; }
public AuthenticationStepRepository(SsoDbContext context) : base(context) { _context = context; }
public SettingRepository(SsoDbContext context) : base(context) { _context = context; }
public RoleGroupRepository(SsoDbContext context) : base(context) { _context = context; }
public Repository(SsoDbContext context) { this.Context = context; }
public ApplicationRepository(SsoDbContext context) : base(context) { _context = context; }
public SecurityLevelModelRepository(SsoDbContext context) : base(context) { _context = context; }
public RoleActionRepository(SsoDbContext context) : base(context) { _context = context; }
public UserRestrictedIpRepository(SsoDbContext context) : base(context) { _context = context; }
public HardwareTokenCodeRepository(SsoDbContext context) : base(context) { _context = context; }
public SessionRepository(SsoDbContext context) : base(context) { _context = context; }
public Repository(SsoDbContext dbContext) { _dbContext = dbContext; }
public UnitOfWork(SsoDbContext dbContext) { _dbContext = dbContext; _dbContextTransaction = _dbContext.Database.BeginTransaction(); }