Exemplo n.º 1
0
 public UnitOfWork(DbContext context)
 {
     this.context = context;
     category     = new CategoryRepo(context);
     chair        = new ChairRepo(context);
     consumer     = new ConsumerRepo(context);
     customer     = new CustomerRepo(context);
     theater      = new HomeTheaterRepo(context);
     product      = new ProductRepo(context);
     subCategory  = new SubCategoryRepo(context);
     table        = new TableRepo(context);
     tv           = new TVRepo(context);
     user         = new UserRepo(context);
 }
Exemplo n.º 2
0
 public Control(IHomeTheater homeTheater)
 {
     _theater = homeTheater;
 }