On 1/13/07, Nataraj S Narayan <[EMAIL PROTECTED]> wrote:
The point is that I havent till now developed any code using 3 tier
approach. Even during my Delphi days. I remember having used 'Raize

Not sure if I'm understanding what you mean my 3-tier approach. I
write client/server applications.

Is anybody using actual object model in Lazarus ? I mean, classes for
say 'Purchase Orders' - which will have the modules for persistance like
TQuery /TTable ,defined inside the PO class?

Having TTable inside you business object. Hell, that doesn't sound
like a good design at all!  If you want to use standard database
components like a TDBGrid etc you can do that as well with tiOPF.
There is a unit called tiDataset that maps you business objects to a
TDataset that the database components can understand.

Maybe you should browse through the Demos available in the tiOPF repository.

http://tiopf.svn.sourceforge.net/viewvc/tiopf/tiOPF2_Demos/

To get the source use:
 svn co https://svn.sourceforge.net/svnroot/tiopf/tiOPF2_Demos tiOPF2_Demos

If you can't find what you are looking for, please post your question
in the tiopf.support newsgroup. More details can be found at:
http://www.techinsite.com.au/tiOPF/Support.htm

The tiOPF documentation is also very good.
http://www.techinsite.com.au/tiOPF/Doc/Default.htm
It still refers to v1 instead of v2 so a few class names have changed,
but the functionality is still there.

I hear that biggest issue is to map object model to relational model.
Which tool is the best to be used with lazarus/fpc?

Again, tiOPF supports this 100%.  You can even use the "automapping"
feature where tiOPF will generate the SQL statements for you.  The SQL
in not always the most optimised (a general problem most SQL
generating frameworks) but will get you going fast. You can then later
fix the bottleneck areas with "hard-coded visitors" which means you
can write the SQL yourself to improve performance.


--
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to