예제 #1
0
        public UnitOfWork(AccountManagerDbContext pContext)
        {
            if (pContext == null)
            {
                throw new ArgumentNullException(nameof(pContext));
            }

            this.iDbContext        = pContext;
            this.ClientRepository  = new ClientRepository(this.iDbContext);
            this.AccountRepository = new AccountRepository(this.iDbContext);
        }
예제 #2
0
 public UnitOfWork(AccountManagerDbContext pContext)
 {
     iDbContext        = pContext;
     AccountRepository = new AccountRepository(pContext);
     ClientRepository  = new ClientRepository(pContext);
 }