示例#1
0
        public static void EditarDentista(Dentista dentista)
        {
            conexao conexao = new conexao();

            conexao.conectar();



            int linhas  = conexao.executar("UPDATE tb_dentista SET nome = '" + dentista.Nome + "' WHERE id =" + dentista.Id);
            int linhas1 = conexao.executar("UPDATE tb_dentista SET cro = '" + dentista.Cro + "' WHERE id =" + dentista.Id);
            int linhas2 = conexao.executar("UPDATE tb_dentista SET sexo = '" + dentista.Sexo + "' WHERE id =" + dentista.Id);
            int linhas3 = conexao.executar("UPDATE tb_dentista SET instagram = '" + dentista.instagram + "' WHERE id =" + dentista.Id);
            int linhas4 = conexao.executar("UPDATE tb_dentista SET linkedin = '" + dentista.linkedin + "' WHERE id =" + dentista.Id);
            int linhas5 = conexao.executar("UPDATE tb_dentista SET facebook = '" + dentista.facebook + "' WHERE id =" + dentista.Id);
            int linhas6 = conexao.executar("UPDATE tb_dentista SET twitter = '" + dentista.twitter + "' WHERE id =" + dentista.id);
        }
示例#2
0
 private void btnNovo_Click(object sender, EventArgs e)
 {
     con.conectar();
     limparCampos();
     desbloquearCampos();
 }