public void DeleteList(List <BaseModele> bms, SqlConnection conn) { if (bms != null && bms.Count != 0) { Connexion c = new Connexion(); foreach (var bm in bms) { c.Execute(QueryDelete(bm), conn); } } }
public void Delete(BaseModele bm, SqlConnection conn) { Connexion c = new Connexion(); c.Execute(QueryDelete(bm), conn); }