Skip to content

TDBDataset.DataBase

Database this dataset is connected to.

Declaration

Source position: db.pas line 2179

public property DataBase: TDataBase;

Description

Database should be set to the TDatabase instance this dataset is connected to. It can only be set when the dataset is closed.

Descendent classes should check in the property setter whether the database instance is of the correct class.

Errors

If the property is set when the dataset is active, an EDatabaseError exception will be raised.

See also

Name Description
TDatabase Base class for connecting a FreePascal application to an external Database engine.
TDBDataset.Transaction Transaction in which this dataset is running.