Beispiel #1
0
 public static void AjouterEntreprise(Entreprise uneEntreprise)
 {
     DbCommand cmd = conn.CreateCommand();
     DbDataReader dr;
     string req = "Insert into ENTREPRISE (VILLE,RUE,CODE_POSTAL,SECTEUR,NOM,EMAIL,NUM_TEL) values ('" + uneEntreprise.GetVille() + "','" + uneEntreprise.GetRue() + "'," + uneEntreprise.GetCP() + ",'" + uneEntreprise.GetSecteur() + "','" + uneEntreprise.GetNom() + "','" + uneEntreprise.GetMail() + "'," + uneEntreprise.GetNumTel() + ")";
     cmd.CommandText = req;
     dr = cmd.ExecuteReader();
     dr.Close();
 }
Beispiel #2
0
        public static void AjouterEntreprise(Entreprise uneEntreprise)
        {
            DbCommand    cmd = conn.CreateCommand();
            DbDataReader dr;
            string       req = "Insert into ENTREPRISE (VILLE,RUE,CODE_POSTAL,SECTEUR,NOM,EMAIL,NUM_TEL) values ('" + uneEntreprise.GetVille() + "','" + uneEntreprise.GetRue() + "'," + uneEntreprise.GetCP() + ",'" + uneEntreprise.GetSecteur() + "','" + uneEntreprise.GetNom() + "','" + uneEntreprise.GetMail() + "'," + uneEntreprise.GetNumTel() + ")";

            cmd.CommandText = req;
            dr = cmd.ExecuteReader();
            dr.Close();
        }