Where should the TClientDataset be located?

Some prerequisites: I want to develop a desktop application with an SQL database as a repository. Only one user connects to the database at a time.
To simplify maintenance, I would like to isolate the GUI from Busniss Logic. So, I was thinking, using a DataModule (where BL is implemented), for each dialog.

My question is: Where is the appropriate place to insert the TClientDataset component? Directly in a dialog or in a DataModule?

+3
source share
5 answers

Personaly, TDataset- datamodule. - , . . , !

+5

TClientDataSet , DataModule . , , TClientDataSet, , , . : TClientDataset , . - datamodule, .

+2

DataSet DataModules. , , DataSet, , .
- , - strong > .
, , DataModules .

+2

- DataSources - .

+1

datasnap:

  • BL- TDatasetProvider, -
  • datamodules TClientDatasets.

, n- DataSnap ( n-, clientdatasets), BL- .

+1

Source: https://habr.com/ru/post/1728643/


All Articles