Пример #1
0
        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));
        }
Пример #2
0
 public ContactPersonRepository(BankRegistryDbContext context) : base(context)
 {
 }
Пример #3
0
 public BankRepository(BankRegistryDbContext context) : base(context)
 {
 }
Пример #4
0
 public RepositoryBase(BankRegistryDbContext context)
 {
     _context = context;
 }