FireDAC.Comp.Client.TFDMetaInfoCommand.BaseObjectName

De RAD Studio API Documentation

Delphi

property BaseObjectName: string read FBaseObjectName write SetBaseObjectName default 0;

C++

__property BaseObjectName = {default=0};

Propriétés

Type Visibilité  Source Unité  Parent
property published
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDMetaInfoCommand

Description

Identifie le nom de l'objet de base pour certains types de commande. {{#multireplace:FireDAC.Comp.Client.TFDMetaInfoCommand.BaseObjectName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} hérite de {{#multireplace:FireDAC.Comp.Client.TFDCustomCommand.BaseObjectName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. Tout le contenu en-dessous de cette ligne se réfère à {{#multireplace:FireDAC.Comp.Client.TFDCustomCommand.BaseObjectName|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Identifie le nom de l'objet de base pour certains types de commande.

BaseObjectName identifie le nom de l'objet de base. La signification dépend de CommandKind et MetaInfoKind:

  • Si CommandKind est dans [skStoredProc, skStoredProcWithCrs, skStoredProcNoCrs], BaseObjectName spécifie alors le nom du package, si la procédure est une procédure packagée.
  • Si MetaInfoKind est dans [mkIndexFields, mkPrimaryKeyFields, mkForeignKeyFields], BaseObjectName spécifie alors le nom de la table.
  • Si MetaInfoKind est dans [mkProcs, mkProcArgs], BaseObjectName spécifie alors le nom du package.

Exemple

 
 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;

Voir aussi