Esempio n. 1
0
 public PhoneBookRepository(PhoneBookContext context)
 {
     _context   = context;
     _entitySet = _context.Set <TEntity>();
 }
Esempio n. 2
0
 public PhoneBookUnitOfWork()
 {
     _context                = new PhoneBookContext();
     _contactsRepository     = new PhoneBookRepository <Contact>(_context);
     _contactTypesRepository = new PhoneBookRepository <ContactType>(_context);
 }
Esempio n. 3
0
 public PhoneBookUnitOfWork()
 {
     _context = new PhoneBookContext();
     _contactsRepository = new PhoneBookRepository<Contact>(_context);
     _contactTypesRepository = new PhoneBookRepository<ContactType>(_context);
 }