Beispiel #1
0
        public void Modifier(Societe s)
        {
            string req = "update Societes set raisonSociale = '" + s.RaisonSociale + "', nbActions = " + s.NbActions + ", valeurUnitaire = " + s.ValeurUnitaire + ", dateCreation= '" + s.DateCreation + "' where ID =" + s.ID;

            MaBD.Commande(req);
        }
Beispiel #2
0
        public void Ajouter(Societe s)
        {
            string req = $"INSERT INTO societes VALUES (null, '{s.RaisonSociale}', {s.NbActions}, {s.ValeurUnitaire}, '{s.DateCreation}')";

            MaBD.Commande(req);
        }