Datasnap.Provider.TGetTableNameEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TGetTableNameEvent = procedure(Sender: TObject; DataSet: TDataSet; var TableName: string) of object;

C++

typedef void __fastcall (__closure *TGetTableNameEvent)(System::TObject* Sender, Data::Db::TDataSet* DataSet, System::UnicodeString &TableName);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider Datasnap.Provider

Description

Represents the procedure type for the events that occur when a resolver initializes its information about the table to which it applies updates.

A variable of TGetTableNameEvent type references an event that enables the provider to apply updates to datasets where the resolver cannot determine the target table in the provider's dataset.

The Sender parameter is the provider that needs the table name for applying updates.

The DataSet parameter is the dataset to which updates should be applied. This may be the provider’s source dataset or a nested detail dataset.

The TableName parameter returns the name of the target table. This is the name used in generated SQL statements that insert, delete, or modify records.

See Also