public UnitOfWork() { _context = new BankRegistryDbContext(); RepositoryBank = new Lazy <IBankRepository>(() => new BankRepository(_context)); RepositoryContactPerson = new Lazy <IContactPersonRepository>(() => new ContactPersonRepository(_context)); RepositoryPosition = new Lazy <IPositionRepository>(() => new PositionRepository(_context)); }
public ContactPersonRepository(BankRegistryDbContext context) : base(context) { }
public BankRepository(BankRegistryDbContext context) : base(context) { }
public RepositoryBase(BankRegistryDbContext context) { _context = context; }