I have a master/detail relation and tried to delete all Detail records for a given master:
while Rezept.TBLREZEPTZUTATList.Count > 0 do begin
Zutat := Rezept.TBLREZEPTZUTATList[0];
mgrManager.Remove(Zutat);
Rezept.TBLREZEPTZUTATList.Remove(Zutat);
end;
(*
for Zutat in Rezept.TBLREZEPTZUTATList do begin
Rezept.TBLREZEPTZUTATList.Remove(Zutat);
mgrManager.Remove(Zutat);
end;
*)
While the first Approach works, the second only deletes the first detail rec. Is the order of removing from Manager and Details important?