Joanna Carter (TeamB) Guest
|
Posted: Fri Nov 19, 2004 12:16 am Post subject: Re: TDatamodule as OPF |
|
|
"Alan" <NOSPAMalan_pltse (AT) yahoo (DOT) com.au> a écrit dans le message de news:
419d2cd4$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Can I use TDataModule as an data layer to access database as what OPF does
? |
The only purpose TDataModule serves is to allow you to place non-visual
components on a non-visual container at design-time.
This is not the purpose of an OPF.
An OPF is intended to separate the business objects that you use from any
notion of databases at all.
Unless you create a dataset component that talks to list of objects rather
than data tables, then the whole data-aware control scenario offered by
Delphi is far from satisfactory. It relies on too many events happening,
sometimes at the wrong time or in the wrong order.
From an application programmer's side of the OPF all you should see are
methods like StoreObject, DeleteObject or RetrieveObject, etc.
Take a look at the articles on OPF on my website :
www.carterconsulting.org.uk
Joanna
--
Joanna Carter (TeamB)
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker
|
|