FireDAC.Comp.Client.TFDLocalSQLDataSet.DataSet

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDLocalSQLDataSet

Delphi

property DataSet: TDataSet read FDataSet write SetDataSet;

C++

__property Data::Db::TDataSet* DataSet = {read=FDataSet, write=SetDataSet};

Description

Specifies a dataset reference for the Local SQL engine.

Use DataSet property to set a reference to a dataset and register it with the Local SQL engine. 

The dataset may be any TDataSet descendant. For non-FireDAC datasets, it is recommended to set the Adapter property also. If Name property value is specified, then it is used as the dataset name. Otherwise, Name is used. 

When the dataset is specified and the Local SQL engine is activated, FireDAC opens the dataset, if it is closed. For in-memory datasets this means that their structure must be defined before activating the Local SQL engine or setting DataSet property.

See Also