API:FireDAC.Comp.Client.TFDCommand.BaseObjectName
Delphi
property BaseObjectName;
C++
__property BaseObjectName = {default=0};
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCommand |
Description
Identifies the name of the base object for some of command kinds.
FireDAC.Comp.Client.TFDCommand.BaseObjectName inherits from FireDAC.Comp.Client.TFDCustomCommand.BaseObjectName. All content below this line refers to FireDAC.Comp.Client.TFDCustomCommand.BaseObjectName.
Identifies the name of the base object for some of command kinds.
BaseObjectName identifies the name of the base object. The meaning depends on CommandKind and MetaInfoKind:
- If CommandKind is in
[skStoredProc, skStoredProcWithCrs, skStoredProcNoCrs]
, then BaseObjectName specifies the name of the package, if the procedure is a packaged procedure. - If MetaInfoKind is in
[mkIndexFields, mkPrimaryKeyFields, mkForeignKeyFields]
, then BaseObjectName specifies the name of the table. - If MetaInfoKind is in
[mkProcs, mkProcArgs]
, then BaseObjectName specifies the name of the package.
Example
ADCommand1.BaseObjectName := 'MY_PACK';
ADCommand1.CommandText.Text := 'PROC1';
// or just ADCommand1.CommandText.Text := 'MY_PACK.PROC1';
ADCommand1.CommandKind := skStoredProc;
ADCommand1.Prepare;
ADCommand1.Params[0].AsInteger := 100;
ADCommand1.Params[1].AsString := 'Delphi';
ADCommand1.Execute;