Exemple #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);
        }
Exemple #2
0
 public frmdentista()
 {
     InitializeComponent();
     con = new conexao();
 }
Exemple #3
0
 public frmpaciente()
 {
     InitializeComponent();
     con = new conexao();
 }
Exemple #4
0
 public frmConsulta()
 {
     InitializeComponent();
     con = new conexao();
 }