Collection of the registered datasets.
Use DataSets collection property to manage the datasets registered with this Local SQL engine.
AnyDAC datasets may be added to the collection implicitly by setting TADAdaptedDataSet.LocalSQL property. Non-AnyDAC and AnyDAC datasets may be added explicitly by adding new items to DataSets collection. To remove a dataset from the list of registered datasets, remove corresponding item from the DataSets collection. The datasets may be added or removed as at design time, as at run time.
All datasets in collection must have unique names. When item Name property is specified, then it is used as a dataset name. If not specified, then TDataSet.Name value will be used.
ADLocalSQL1.DataSets.Add.DataSet := ADOQuery1; ADLocalSQL1.DataSets.Add.DataSet := ADOQuery2; ADQuery1.LocalSQL := ADLocalSQL1; ADQuery2.LocalSQL := ADLocalSQL1;
What do you think about this topic? Send feedback!