/// <summary> /// supprimer toutes les données de la base de données .sdf /// </summary> private void ClearAllData() { ConnSql.Open(); SqlCeCommand Cmd = new SqlCeCommand("DELETE FROM Articles", ConnSql); Cmd.ExecuteNonQuery(); Cmd.CommandText = "DELETE FROM Marques"; Cmd.ExecuteNonQuery(); Cmd.CommandText = "DELETE FROM SousFamilles"; Cmd.ExecuteNonQuery(); Cmd.CommandText = "DELETE FROM Familles"; Cmd.ExecuteNonQuery(); ConnSql.Close(); }