Declaration¶
Source position: db.pas line 2169
type
TDBDataset = class(TDataSet)
public
destructor destroy;
property DataBase: TDataBase; {rw}
property Transaction: TDBTransaction; {rw}
end;
Inheritance¶
Description¶
TDBDataset is a TDataset descendent which introduces the concept of a database: a central component (TDatabase) which represents a connection to a database. This central component is exposed in the TDBDataset.Database property. When the database is no longer connected, or is no longer in memory, all TDBDataset instances connected to it are disabled.
TDBDataset also introduces the notion of a transaction, exposed in the Transaction property.
TDBDataset is an abstract class, it should never be used directly.
Dataset component writers should descend their component from TDBDataset if they wish to introduce a central database connection component. The database connection logic will be handled automatically by TDBDataset.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| DataBase | public | Database this dataset is connected to. |
| Transaction | public | Transaction in which this dataset is running. |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| destroy | public | Remove the TDBDataset instance from memory. |
See also¶
| Name | Description |
|---|---|
| TDatabase | Base class for connecting a FreePascal application to an external Database engine. |
| TDBTransaction | Encapsulate a transaction. |