Re: The Zen nature of a Delphi database application
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Feb 2007 09:25:47 +0100
"marek jedlinski" <marekjed@xxxxxxxxxxxxxxxxx> wrote in message
news:dqc7t2l4f409mui7fs9pa3s3kies3u1g6e@xxxxxxxxxx
If I have a seemingly basic question about using a database in a Delphi
app, ...
'Basic' in the sense of fundamental. This is not an easy question at all.
[...]
Should I (a) use database functionality ONLY, and connect query results
directly to UI controls, then write data from the controls to the DB?
Or, should I (b) read from the DB into objects that represent the data
(a "data model"), populate UI controls from those objects, then write
data back from the modified objects to the DB for storage?
The state of the art is to do (b). It's more work up front, but it's
better and it _can_ be done. And it's a lot less work if (when) you
want to go back and add or change something.
Subscribe to borland.public.delphi.oodesign and read back a year or so
(it's not a busy group). You will learn exactly everything you want to
know about business object, data packets, lazy loading, object
identifiers, and separating UI, business model, and backing store from
each other.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: The Zen nature of a Delphi database application
- From: marek jedlinski
- Re: The Zen nature of a Delphi database application
- From: Bjørge
- Re: The Zen nature of a Delphi database application
- References:
- The Zen nature of a Delphi database application
- From: marek jedlinski
- The Zen nature of a Delphi database application
- Prev by Date: Re: Problem freeing components with .free
- Next by Date: Re: Problem freeing components with .free
- Previous by thread: Re: The Zen nature of a Delphi database application
- Next by thread: Re: The Zen nature of a Delphi database application
- Index(es):
Relevant Pages
|