FireDAC.Comp.Client.TFDMetaInfoQuery.Connection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Connection;

C++

__property Connection;

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDMetaInfoQuery

Description

Specifies the FireDAC connection component to use.

FireDAC.Comp.Client.TFDMetaInfoQuery.Connection inherits from FireDAC.Comp.Client.TFDRdbmsDataSet.Connection. All content below this line refers to FireDAC.Comp.Client.TFDRdbmsDataSet.Connection.

Specifies the FireDAC connection component to use.

Use Connection to specify a FireDAC connection object to use in order to connect to a DBMS. 

At design time, select from the list of available TFDCustomConnection objects (if any have been added to the application) invoked from the Object Inspector. If a form or data module has TFDCustomConnection dropped on it, TFDRdbmsDataSet assigns this connection object to the Connection property automatically right after dropping it on the form or data module. 

At run time, set Connection to reference an existing TFDConnection object. TFDRdbmsDataSet can be bound to the TFDCustomConnection object using Connection or ConnectionName property. Using ConnectionName property allows to bind to a connection object if it is not yet created or it is not accessible.

See Also