Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public EquipmentRepository(KaznituLabContext context) : base(context)
 {
 }
Ejemplo n.º 3
0
 public LaboratoryRepository(KaznituLabContext context) : base(context)
 {
 }
Ejemplo n.º 4
0
 public Repository(KaznituLabContext context)
 {
     _context = context;
 }
Ejemplo n.º 5
0
 public UserRepository(KaznituLabContext context) : base(context)
 {
 }
Ejemplo n.º 6
0
 public ProjectRepository(KaznituLabContext context) : base(context)
 {
 }
Ejemplo n.º 7
0
 public WorkRepository(KaznituLabContext context) : base(context)
 {
 }
Ejemplo n.º 8
0
 public UserService(KaznituLabContext context, UserManager <AppUser> userManager, IUnitOfWork db)
 {
     _userManager = userManager;
     Db           = db;
 }
Ejemplo n.º 9
0
 public DictionaryService(HrContext hrdb, KaznituLabContext db)
 {
     hrDb = hrdb;
     Db   = db;
 }
Ejemplo n.º 10
0
 public AccountService(KaznituLabContext db, UserManager <AppUser> userManager)
 {
     _userManager = userManager;
 }