I have a DataModule and I want to have many (>50) datasets inside of it. I plan to request data from that datasets via functions and procedures.
The question is, what is the best way to organize datasets in the DataModule?
I see three options:
- One design-time component for each dataset.
- One common design-time component dataset for all datasets. Text of SQL command and other properties are set dynamically inside a corresponding function or procedure.
- No design-time components. Each dataset is created in the run-time inside a corresponding function, then it returns data to this function and gets destroyed.
How do you think, which way is the best? Or none of above? Are there any other ways to efficiently organize many datasets inside a DataModule?