API:FireDAC.Phys.SQLiteVDataSet.TFDLocalSQL.OnGetDataSet
Delphi
property OnGetDataSet: TFDGetDatasetEvent read FOnGetDataSet write FOnGetDataSet;
C++
__property OnGetDataSet;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FireDAC.Phys.SQLiteVDataSet.pas FireDAC.Phys.SQLiteVDataSet.hpp |
FireDAC.Phys.SQLiteVDataSet | TFDLocalSQL |
Description
The event that fires when the Local SQL engine looks for a dataset object.
FireDAC.Phys.SQLiteVDataSet.TFDLocalSQL.OnGetDataSet inherits from FireDAC.Comp.Client.TFDCustomLocalSQL.OnGetDataSet. All content below this line refers to FireDAC.Comp.Client.TFDCustomLocalSQL.OnGetDataSet.
The event that fires when the Local SQL engine looks for a dataset object.
Use the OnGetDataSet event handler to submit a dataset object by its name.
This event can be used to dynamically provide a dataset, without registering it first with the Local SQL engine. The value of the AName
and ADataSet.Name
arguments may be different. After returning a dataset, it will be registered in the DataSets collection under the AName
argument value.
The event handler must return ADataSet
, AAdapter
, or both arguments assigned. For FireDAC datasets, only ADataSet
can be assigned. For non-FireDAC datasets we recommend that you assign both arguments.