Ejemplo n.º 1
0
 public UnitofWork()
 {
     _context = new TechDbContext();
     Persons  = new PersonRepository(_context);
     Colors   = new ColourRepository(_context);
 }
Ejemplo n.º 2
0
 public PersonRepository(TechDbContext context) : base(context)
 {
 }
Ejemplo n.º 3
0
 public ColourRepository(TechDbContext context) : base(context)
 {
 }
Ejemplo n.º 4
0
 public Repository(TechDbContext context)
 {
     Context = context;
 }