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); }
public void Ajouter(Societe s) { string req = $"INSERT INTO societes VALUES (null, '{s.RaisonSociale}', {s.NbActions}, {s.ValeurUnitaire}, '{s.DateCreation}')"; MaBD.Commande(req); }