public UnitOfWork ( EntitiesContexts _context, Generic <Admin> _AdminRepo, Generic <Client> _ClientRepo, Generic <Group> _GroupRepo, Generic <Item> _ItemRepo, Generic <Order> _OrderRepo, Generic <OrderItem> _OrderItemRepo ) { context = _context; AdminRepo = _AdminRepo; AdminRepo.Context = context; ClientRepo = _ClientRepo; ClientRepo.Context = context; GroupRepo = _GroupRepo; GroupRepo.Context = context; ItemRepo = _ItemRepo; ItemRepo.Context = context; OrderRepo = _OrderRepo; OrderRepo.Context = context; OrderItemRepo = _OrderItemRepo; OrderItemRepo.Context = context; }
public Generic(EntitiesContexts context) { Context = context; dbSet = Context.Set <T>(); }