FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileAutoLoad
Delphi
property ConnectionDefFileAutoLoad: Boolean read GetConnectionDefAutoLoad
C++
__property bool ConnectionDefFileAutoLoad = {read=GetConnectionDefAutoLoad, write=SetConnectionDefAutoLoad, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomManager |
Description
Controls how the connection definition file must be loaded.
The ConnectionDefFileAutoLoad property controls whether a connection definition file should be loaded automatically or explicitly by the programmer. If True, FireDAC loads immediately the file to the content of the ConnectionDefs list.
If False, the programmer should call the ConnectionDefs.Load method before operating any changes to the ConnectionDefs list, including:
- Opening a connection referencing to a connection definition by its name (see TFDCustomConnection.ConnectionDefName).
- Iterating through the existing connection definitions (see TFDCustomManager.ConnectionDefs).
- Adding a new connection definition, deleting the existing connection definition or looking for an existing connection definition (see TFDCustomManager.ConnectionDefs).
Otherwise, an exception is raised.