FireDAC.Comp.Client.TFDManager.ConnectionDefFileName
[–] Properties | |
---|---|
Type: property | |
Visibility: published | |
Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
Unit: FireDAC.Comp.Client | |
Parent: TFDManager |
Delphi
property ConnectionDefFileName;
C++
__property ConnectionDefFileName = {default=0};
Description
Gets or sets the name of a connection definition file.
FireDAC.Comp.Client.TFDManager.ConnectionDefFileName inherits from FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName. All content below this line refers to FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName.
Gets or sets the name of a connection definition file.
The ConnectionDefFileName property allows you to get or set the name of a connection definition file.
The application can set the name before the connection definitions file is loaded, for example, in the BeforeLoadConnectionDefFile event handler.
If a path is a relative one or contains template markers, it will be expanded into full path. Use ActualConnectionDefFileName to get the expanded value.
A path can include path variables.
Example
FDManager.ConnectionDefFileName := ExtractFilePath(Application.ExeName) + 'myconndef.ini';
FDManager.ConnectionDefFileAutoLoad := True;
oConn := TFDConnection.Create(nil);
oConn.ConnectionDefName := 'myconn';
oConn.Connected := True;