Exemplo n.º 1
0
 public UnitWork1(EAMSContext context)
 {
     _context             = context;
     Emp1s                = new Emp1Repository(_context);
     CompanyMasters       = new CompanyMasterRepository(_context);
     QualificationMasters = new QualificationMasterRepository(_context);
     StateMasters         = new StateMasterRepository(_context);
     CityMasters          = new CityMasterRepository(_context);
     EmployerDetails      = new EmployerDetailsRepository(_context);
     VacancyMasters       = new VacancyMasterRepository(_context);
     RankMasters          = new RankMasterRepository(_context);
     ESMDetails           = new ESMOfficersDetailRepository(_context);
     ESMJcoDetails        = new ESMJcoORsDetailRepository(_context);
     PBORSpopnserships    = new PBORSponsorshipRepository(_context);
     Registrations        = new RegistrationESMOffrsRepository(_context);
     Sainikboards         = new SainikBoardRepository(_context);
     Notings              = new NotingMasterRepository(_context);
     RegEAMSJCOs          = new RegistrationEAMSJcoRepository(_context);
     SponsorDatas         = new SponsorDataRepository(_context);
     OutcomeDatas         = new OutcomeDataRepository(_context);
     PersonData           = new PersonRepository(_context);
     CorpMasters          = new CorpMasterRepository(_context);
     TradeMasters         = new TradeMasterRepository(_context);
     GradeMasters         = new GradeMasterRepository(_context);
 }
Exemplo n.º 2
0
 public Emp1Repository(EAMSContext context) : base(context)
 {
 }
Exemplo n.º 3
0
 public void UpdateAddress(Emp1 obj)
 {
     //EAMSContext.Epm1s.Attach(obj);
     EAMSContext.Entry(obj).Property(x => x.Address).IsModified = true;
 }