AnyDAC
ContentsIndexHome
PreviousUpNext
TADCustomManager.ConnectionDefFileAutoLoad Property

Controls how connection definitions file must be loaded.

Group
Links

The ConnectionDefFileAutoLoad property controls, should be a connection definition file loaded automatically or explicitly by programmer. If True, then AnyDAC will load file at first "touch" to the content of the ConnectionDefs list. 

If False, then programmer should call ConnectionDefs.Load method before first "touch" to the ConnectionDefs list, including:

  • opening a connection referencing to a connection definition by its name (see TADCustomConnection.ConnectionDefName);
  • iterating through existing connection definitions (see TADCustomManager.ConnectionDefs);
  • adding new connection definition, deleting existing connection definition or looking for existing connection definition (see TADCustomManager.ConnectionDefs);

Otherwise an exception will be raised.

property ConnectionDefFileAutoLoad: Boolean;
What do you think about this topic? Send feedback!