Exemplo n.º 1
0
 public UnitOfWork(AddressBookAlphaContext context)
 {
     _context = context;
     //_context.Configuration.ProxyCreationEnabled = false;
     People     = new PersonRepository(_context);
     Addresses  = new Repository <Address>(_context);
     Phones     = new Repository <Phone>(_context);
     PhoneTypes = new Repository <PhoneType>(_context);
 }
Exemplo n.º 2
0
 public PersonRepository(AddressBookAlphaContext context)
     : base(context)
 {
 }