API:FireDAC.Comp.Client.TFDCustomConnection
Delphi
TFDCustomConnection = class(TCustomConnection,
IFDStanOptions, IFDStanErrorHandler, IFDStanObject, IFDPhysConnectionRecoveryHandler,
IFDPhysTransactionStateHandler)
C++
class PASCALIMPLEMENTATION TFDCustomConnection : public Data::Db::TCustomConnection
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | FireDAC.Comp.Client |
Description
TCustomConnection is the base class for components that connect datasets to a remote source of data.
FireDAC.Comp.Client.TFDCustomConnection inherits from Data.DB.TCustomConnection. All content below this line refers to Data.DB.TCustomConnection.
TCustomConnection is the base class for components that connect datasets to a remote source of data.
Use TCustomConnection as a base class for components that represent a remote source of the data contained in a dataset. This source can be a remote database server, the middle tier of a multi-tiered database application, an interface such as the one used by ActiveX Data Objects (ADO), or any other driver that provides the information represented in a dataset. TCustomConnection introduces:
- Methods for connecting to and disconnecting from the source of data.
- Login support for providing a user name and password when establishing a connection.
- Properties for keeping track of the datasets that use the connection component.
Do not create instances of TCustomConnection. To add a component that represents the connection to a source of data, use a TCustomConnection descendant such as TDatabase, TADOConnection, TSQLConnection, or one of the DataSnap connection components such as TDCOMConnection or TSOAPConnection.