FireDAC.Comp.DataSet.TFDDataSet.LoadFromFileAtOpen
Delphi
function LoadFromFileAtOpen: Boolean;
C++
bool __fastcall LoadFromFileAtOpen();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Description
Returns True if the dataset content is loaded from a file when calling Open.
Use the LoadFromFileAtOpen method to see if the dataset executes the command to get cursor and fetch records (False) or will load its content from the data file (True). To automatically load content from the data file, the following conditions must be met:
- The dataset must be not a nested dataset.
- ResourceOptions.Persistent is set to True.
The file with the name resolved from ResourceOptions.PersistentFileName must exist.