[Lazarus] [OT] How to delete a record/object being used

Joao Morais post at joaomorais.com.br
Tue Sep 9 16:45:25 CEST 2008


Graeme Geldenhuys wrote:
>>  anyway you can choose between query the database before
>>  try to delete the record (when you have an oo model this is very simple
> 
> Umm... this sounds like a safer option than cascade delete. At least I
> wouldn't run into the 'in memory' issue mentioned in my reply to
> Michael.

Cascade delete and 'no action' are quite different. The former is 
applyed when you have composition, the later when you have aggregation.

Joao Morais



More information about the Lazarus mailing list