Exemple #1
0
 public UnitOfWork(IRepository <Computer> computerRepository, IRepository <ComputerParts> computerPartsRepository, IRepository <Order> orderRepository, IRepository <Owner> ownerRepository, IRepository <Part> partRepository, ComputerServiceDbContext context, UserManager <User> userManager, SignInManager <User> signInManager)
 {
     ComputerRepository      = computerRepository;
     ComputerPartsRepository = computerPartsRepository;
     OrderRepository         = orderRepository;
     OwnerRepository         = ownerRepository;
     PartRepository          = partRepository;
     _context         = context;
     this.UserManager = userManager;
     SignInManager    = signInManager;
 }
Exemple #2
0
 public Repository(ComputerServiceDbContext context)
 {
     _context = context;
 }