On 1/29/10 10:16 AM, Ed Leafe wrote:
> On Jan 29, 2010, at 1:05 PM, Jacek Kałucki wrote:
>
>>>     So in order to delete a record, you need to save it? Sounds like 
>>> Windows: in order to stop the system, you need to click 'Start'.
>>
>> I could answer: why in order to create new record I need to click 'Save'?
>
>
>       Because new() creates a new local record. If after you have that record 
> and have filled it in with data, you decide that you want to write it to the 
> database, you call save().
>
>       new() isn't the opposite of delete(); save() is.

No, cancel() is the opposite of save()

When you save(), you are committing your changes; when you cancel(), you are 
forfeiting your changes. Changes can include updating, inserting, or deleting.

The way I see it, anyway. ;)

(when you delete from an rdbms, you still need to commit the transaction first)

But I think that the time for discussing such a change is long past. If we were 
to 
decide to change the behavior, we'd be potentially breaking every app out there.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to