예제 #1
0
파일: VagasDao.cs 프로젝트: tiagotba/SGE
        public void Editar(Vagas vag)
        {
            var entity = Pesquisar(vag.Id_Vaga);

            if (entity != null)
            {
                _sgeContext.Entry(entity).State = System.Data.Entity.EntityState.Modified;
                _sgeContext.SaveChanges();
            }
        }
예제 #2
0
        public void Editar(TipoOcorrencia tip)
        {
            var entity = Pesquisar(tip.Id_Tipo_Ocorrencia);

            if (entity != null)
            {
                _sgeContext.Entry(entity).State = System.Data.Entity.EntityState.Modified;
                _sgeContext.SaveChanges();
            }
        }
예제 #3
0
파일: ClienteDao.cs 프로젝트: tiagotba/SGE
        public void Editar(Cliente cli)
        {
            var entity = Pesquisar(cli.Id_Cliente);

            if (entity != null)
            {
                _sgeContext.Entry(entity).State = System.Data.Entity.EntityState.Modified;
                _sgeContext.SaveChanges();
            }
        }
예제 #4
0
파일: VeiculoDao.cs 프로젝트: tiagotba/SGE
        public void Editar(Veiculo veic)
        {
            var entity = Pesquisar(veic.Id_Veiculo);

            if (entity != null)
            {
                _sgeContext.Entry(entity).State = System.Data.Entity.EntityState.Modified;
                _sgeContext.SaveChanges();
            }
        }
예제 #5
0
파일: UsuarioDao.cs 프로젝트: tiagotba/SGE
        public void Editar(Usuario usu)
        {
            var usuario = Pesquisar(usu.Id_Usuario);

            if (usuario != null)
            {
                _sgeContext.Entry(usuario).State = System.Data.Entity.EntityState.Modified;
                _sgeContext.SaveChanges();
            }
        }
예제 #6
0
파일: OcupacaoDao.cs 프로젝트: tiagotba/SGE
 public int Salvar(Ocupacao ocu)
 {
     _sgeContext.Entry(ocu).State = System.Data.Entity.EntityState.Added;
     return(_sgeContext.SaveChanges());
 }
예제 #7
0
 public int Salvar(Setor set)
 {
     _sgeContext.Entry(set).State = System.Data.Entity.EntityState.Added;
     return(_sgeContext.SaveChanges());
 }