Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share datamodules between Intraweb and VCL projects
#1
Question 
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
Reply


Messages In This Thread
Share datamodules between Intraweb and VCL projects - by David1 - 01-22-2024, 10:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)