public UnitOfWork(KaznituLabContext context) { db = context; Users = new UserRepository(db); Equipments = new EquipmentRepository(db); Laboratories = new LaboratoryRepository(db); Project = new ProjectRepository(db); Works = new WorkRepository(db); // EquipmentTechnicalMaintenances = new Repository <EquipmentTechnicalMaintenance>(db); LaboratoryEmployees = new Repository <LaboratoryEmployee>(db); LaboratoryEqiupments = new Repository <LaboratoryEqiupment>(db); LaboratoryServices = new Repository <LaboratoryService>(db); LaboratoryProjects = new Repository <LaboratoryProject>(db); ProjectContracts = new Repository <ProjectContract>(db); ProjectCustomers = new Repository <ProjectCustomer>(db); ProjectEmployees = new Repository <ProjectEmployee>(db); WorkCoAuthors = new Repository <WorkCoAuthor>(db); ProjectCertificateRegistrations = new Repository <ProjectCertificateRegistration>(db); ProjectFundings = new Repository <ProjectFunding>(db); ProjectFundingStages = new Repository <ProjectFundingStage>(db); ProjectFundingCoFinancings = new Repository <ProjectFundingCoFinancing>(db); ProjectPatents = new Repository <ProjectPatent>(db); ProjectRevenues = new Repository <ProjectRevenue>(db); }
public EquipmentRepository(KaznituLabContext context) : base(context) { }
public LaboratoryRepository(KaznituLabContext context) : base(context) { }
public Repository(KaznituLabContext context) { _context = context; }
public UserRepository(KaznituLabContext context) : base(context) { }
public ProjectRepository(KaznituLabContext context) : base(context) { }
public WorkRepository(KaznituLabContext context) : base(context) { }
public UserService(KaznituLabContext context, UserManager <AppUser> userManager, IUnitOfWork db) { _userManager = userManager; Db = db; }
public DictionaryService(HrContext hrdb, KaznituLabContext db) { hrDb = hrdb; Db = db; }
public AccountService(KaznituLabContext db, UserManager <AppUser> userManager) { _userManager = userManager; }