Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   TFDCommand Verständnis von Klassen (https://www.delphipraxis.net/208887-tfdcommand-verstaendnis-von-klassen.html)

bernhard_LA 25. Sep 2021 08:17

Datenbank: MSSQL • Version: 12 • Zugriff über: Firedac

TFDCommand Verständnis von Klassen
 
wenn eine Klasse nur aus einer Liste von Properties besteht, was bedeutet dies eigentlich ?
Welche Funktion hat diese Code Zeile
Delphi-Quellcode:
 [ComponentPlatformsAttribute(pidAllPlatforms)]



Delphi-Quellcode:

[ComponentPlatformsAttribute(pidAllPlatforms)]
  TFDCommand = class(TFDCustomCommand)
  published
    property ConnectionName;
    property Connection;
    property Transaction;
    property CatalogName;
    property SchemaName;
    property BaseObjectName;
    property Overload;
    property Params;
    property Macros;
    property FetchOptions;
    property FormatOptions;
    property ResourceOptions;
    property UpdateOptions;
    property CommandKind;
    property CommandText;
    property ActiveStoredUsage;
    property Active;
    property BeforeClose;
    property BeforeOpen;
    property AfterClose;
    property AfterOpen;
    property BeforeUnprepare;
    property BeforePrepare;
    property AfterUnprepare;
    property AfterPrepare;
    property BeforeExecute;
    property AfterExecute;
    property OnError;
    property OnCommandChanged;
  end;

stahli 25. Sep 2021 08:27

AW: TFDCommand Verständnis von Klassen
 
Die Properties werden geerbt aus der Elternklasse und sichtbarer gemacht.
Vorher waren sie z.B. nur public und jetzt werden sie published.

bernhard_LA 25. Sep 2021 09:13

AW: TFDCommand Verständnis von Klassen
 
Danke , habe dann noch hier weitergelesen https://www.delphipraxis.net/174950-...zu-public.html


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:50 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz