Controls dataset persistence.
Use Persistent property to control dataset persistence. By default it is False.
If it is True, then dataset will load it content from data file at Open call and will save data to data file at Close call. At dataset will load data, if TADBottomResourceOptions.PersistentFileName is not empty and file exists. A dataset will save data, TADBottomResourceOptions.PersistentFileName is not empty, file does not exists or data was changed after Open call.
Special case is TADCustomMemTable. If TADBottomResourceOptions.PersistentFileName is empty, then dataset will save / load data from DFM. So, to save in-memory table content at design time to DFM file, set Persistent to True and clear PersistentFileName.
property Persistent: Boolean;
What do you think about this topic? Send feedback!