public void ExcluirDadosDentista() { string sql = ""; sql += "Delete from Dentistas where idDentista = " + IdDentista.ToString(); c.Executar(sql); }
public void AlterarDadosDentista() { string sql = ""; sql += "Update Dentistas set CPFDentista = '" + CpfDentista + "', CROdentista = '" + CroDentista + "', nomeDentista = '" + NomeDentista + "', enderecoDentista = '" + EnderecoDentista + "', estadoDentista = '" + EstadoDentista + "', CEPDentista = '" + CepDentista + "', cidadeDentista = '" + CidadeDentista + "',dataNascDentista = '" + DataNascimentoDentista + "', sexoDentista = '" + SexoDentista + "', telefoneDentista = '" + TelefoneDentista + "', celularDentista = '" + CelularDentista + "', especializacaoDentista = '" + EspecializacaoDentista + "' where idDentista = " + IdDentista.ToString(); c.Executar(sql); }