FireDAC.Comp.Client.TFDCustomCommand.BaseObjectName
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
Unit: FireDAC.Comp.Client | |
Parent: TFDCustomCommand |
Delphi
property BaseObjectName: String read FBaseObjectName write SetBaseObjectName;
C++
__property System::UnicodeString BaseObjectName = {read=FBaseObjectName, write=SetBaseObjectName};
Description
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;