Exemple #1
0
        public void AtualizarAprendizadoDeParticipanteSemConferencia(MA_PARTICIPANTE_APRENDER participanteaprender)
        {
            MIMACHEREntities contexto = new MIMACHEREntities();

            contexto.Entry(participanteaprender).State = EntityState.Modified;
            contexto.SaveChanges();
        }
        public void Atualizar(MA_PARTICIPANTE participante)
        {
            MIMACHEREntities Contexto = new MIMACHEREntities();

            Contexto.Entry(participante).State = EntityState.Modified;
            Contexto.SaveChanges();
        }
Exemple #3
0
        public Boolean AtualizarUsuarioComRetorno(MA_USUARIO usuario)
        {
            MA_USUARIO usuarioaconferir = new MA_USUARIO();

            MIMACHEREntities contextoModificado = new MIMACHEREntities();

            if (VerificarSeEmailDeUsuarioJaExiste(usuario))
            {
                usuarioaconferir = ObterUsuarioPorEmail(usuario.e_mail);

                if (usuarioaconferir.cod_usuario == usuario.cod_usuario)
                {
                    contextoModificado.Entry(usuario).State = EntityState.Modified;
                    contextoModificado.SaveChanges();

                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                contextoModificado.Entry(usuario).State = EntityState.Modified;
                contextoModificado.SaveChanges();

                return(true);
            }
        }
Exemple #4
0
        public void AtualizarEnsinamentoDeParticipanteSemConferencia(MA_PARTICIPANTE_ENSINAR participanteensinar)
        {
            MIMACHEREntities Contexto = new MIMACHEREntities();

            Contexto.Entry(participanteensinar).State = EntityState.Modified;
            Contexto.SaveChanges();
        }
Exemple #5
0
        public void Atualizar(MA_PARTICIPANTE participante)
        {
            MIMACHEREntities contexto = new MIMACHEREntities();

            try
            {
                contexto.Entry(participante).State = EntityState.Modified;
                contexto.SaveChanges();
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Exemple #6
0
        public void AtualizarAprendizadoDeHobbieSemConferencia(MA_PARTICIPANTE_HOBBIE hobbieparticipante)
        {
            MIMACHEREntities contexto = new MIMACHEREntities();

            try
            {
                contexto.Entry(hobbieparticipante).State = EntityState.Modified;
                contexto.SaveChanges();
            }
            catch (Exception e)
            {
                throw e;
            }
        }
 public RepositorioDeNAC()
 {
     this.Contexto = new MIMACHEREntities();
 }
Exemple #8
0
 public RepositorioDeImagemDeParticipante()
 {
     this.Contexto = new MIMACHEREntities();
 }
Exemple #9
0
        public MA_PARTICIPANTE_APRENDER ObterAprendizadoDeParticipantePorItemEParticipante(int idItem, int idParticipante)
        {
            MIMACHEREntities contextoModificado = new MIMACHEREntities();

            return(contextoModificado.MA_PARTICIPANTE_APRENDER.Where(l => l.cod_participante == idParticipante && l.cod_item == idItem).SingleOrDefault());
        }
Exemple #10
0
 public RepositorioDeAprendizadoDeParticipante()
 {
     this.Contexto = new MIMACHEREntities();
 }
 public RepositorioDeStatusDeRelacao()
 {
     this.Contexto = new MIMACHEREntities();
 }
Exemple #12
0
 public RepositorioDeNACAreaDeAtuacao()
 {
     this.Contexto = new MIMACHEREntities();
 }
Exemple #13
0
        public MA_PARTICIPANTE_HOBBIE ObterParticipanteHobbiePorItemEParticipante(int idItem, int idParticipante)
        {
            MIMACHEREntities contextoModificado = new MIMACHEREntities();

            return(contextoModificado.MA_PARTICIPANTE_HOBBIE.Where(l => l.cod_participante == idParticipante && l.cod_item == idItem).SingleOrDefault());
        }
Exemple #14
0
 public RepositorioDePartipanteHobbie()
 {
     this.Contexto = new MIMACHEREntities();
 }
Exemple #15
0
 public RepositorioDeParticipanteEnsinar()
 {
     this.Contexto = new MIMACHEREntities();
 }