public void Update(ProgrammerProfile programmer)
        {
            var localEntity = db.ProgrammerProfiles.Local.FirstOrDefault(x => x.Id == programmer.Id);

            if (localEntity != null)
            {
                db.Entry(localEntity).State = EntityState.Detached;
            }
            db.Entry(programmer).State = EntityState.Modified;
        }
Ejemplo n.º 2
0
        public void Update(ProgrammerSkill programmerSkill)
        {
            var localEntity = db.ProgrammerSkills.Local.FirstOrDefault(x => x.ProgrammerId == programmerSkill.ProgrammerId && x.SkillId == programmerSkill.SkillId);

            if (localEntity != null)
            {
                db.Entry(localEntity).State = EntityState.Detached;
            }
            db.Entry(programmerSkill).State = EntityState.Modified;
        }
Ejemplo n.º 3
0
        public void Update(WorkExperience workExperience)
        {
            var localEntity = db.WorkExperiences.Local.FirstOrDefault(x => x.Id == workExperience.Id);

            if (localEntity != null)
            {
                db.Entry(localEntity).State = EntityState.Detached;
            }
            db.Entry(workExperience).State = EntityState.Modified;
        }
        public void Update(Project project)
        {
            var localEntity = db.Projects.Local.FirstOrDefault(x => x.Id == project.Id);

            if (localEntity != null)
            {
                db.Entry(localEntity).State = EntityState.Detached;
            }
            db.Entry(project).State = EntityState.Modified;
        }
Ejemplo n.º 5
0
        public void Update(Education education)
        {
            var localEntity = db.Educations.Local.FirstOrDefault(x => x.Id == education.Id);

            if (localEntity != null)
            {
                db.Entry(localEntity).State = EntityState.Detached;
            }
            db.Entry(education).State = EntityState.Modified;
        }
        public void Update(Skill skill)
        {
            var localEntity = db.Skills.Local.FirstOrDefault(x => x.Id == skill.Id);

            if (localEntity != null)
            {
                db.Entry(localEntity).State = EntityState.Detached;
            }
            db.Entry(skill).State = EntityState.Modified;
        }