Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-04

tiOPF oprm dia dia2pas

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Osvaldo Filho

Any one could help me with OOP and Business Objects Persistence ?

I lookfor change from dbaware programs for Object/DBAware programs.

How can i use datasets with tiOPF or oprm?

Any one could give me a diagram in dia for exemple and procedures for convert it in a .pas code?

Thanks.

Reply by email

Graeme Geldenhuys
to Osvaldo Filho
Osvaldo Filho wrote
Any one could help me with OOP and Business Objects Persistence ? I lookfor change from dbaware programs for Object/DBAware programs. How can i use datasets with tiOPF or oprm?

A better place to ask tiOPF questions would be in the tiOPF newsgroups. http://tiopf.sourceforge.net/Support.shtml

As for using tiOPF with DB-Aware components. That is what the <tiopf>/Options/tiDataset.pas unit is for. This allows you to use any DB components with your business objects.

Alternatively, I highly recommend you stay away from DB-aware components and rather us Model-GUI-Mediator (also included in tiOPF) which allows you to use any standard (non-db) gui components and make them "object aware". There is an example of this for VCL, LCL and fpGUI. It's Demo 21 (address book demo). We have been using it in a commercial application for 3 years already with great results.

Any one could give me a diagram in dia for example and procedures for convert it in a .pas code?

Model Maker is really the best tool for this job, but it's not free. But I have been using UML diagrams (with dia) for years and simply implement them by hand. I have never found a tool that does things automatically and in exactly the way I want. So hand coding is still the best option for me.

If it's generating quick business objects and tiopf visitors that you are after. There are three methods of doing this. tiSQLeditor (included with tiOPF but a bit dated), Code Templates (still my most used option) and then there is Lazarus Data Desktop (which is also very impressive).

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email