UniDAC

TDataSetLinks.Add Method

Adds a new TDataSetLink instance to the collection and fills its properties.

Class

TDataSetLinks

Syntax

function Add(DataSet: TDataSet; const SchemaName: string; const TableName: string): TDataSetLink; overload;

Parameters
DataSet
Defines a TDataSet descendant to be linked as a data source for querying data in TVirtualQuery.
SchemaName
Defines the schema name which will be used to identify the linked source dataset in a SQL statement. Can be left empty. In this case either no schema name or the "main" schema name can be used when referring to the dataset in a SQL statement.
TableName
Defines the table name which will be used to identify the linked source dataset in a SQL statement. Must be filled.
Return Value
A instance which has been added.

Remarks

Combination of schema name and table name must be unique for each linked dataset. Also, a source dataset can be linked using the TDataSetLinks.Add method.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback