Quantcast
Channel: Atozed Forums - All Forums
Viewing all articles
Browse latest Browse all 277

Share datamodules between Intraweb and VCL projects

$
0
0
Hello,

this is a more general architectural question than a specific Intraweb one...:

I have a fully functional Intraweb application which manage some classes and data modules.
I would like to leverage on these classes and data modules in a new VCL application.

For the classes is enough to share files but for the datamodules (which leverage on FireDAC) I would like to know which is the best way to manage the connection to DB.

In my Intraweb application all the datamodules refer to a connection component in the Usersession object.
When I try to use them in the VCL application I relized I cannot use the Usersession unit (or at least I think is not the best solution) and I don't know how to manage the connection to the DB in the datamodules.

I thinking about define a parameter to pass the connection in the datamodules constructor but perhaps there is a better solution.

Which is the best way to share datamodules and address the FDConnection between IW and VCL projects?

Thank you,
Davide

Viewing all articles
Browse latest Browse all 277

Trending Articles