Datasnap.Provider.TDataSetProvider.ResolveToDataSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ResolveToDataSet: Boolean read FResolveToDataSet write SetResolveToDataSet default False;

C++

__property bool ResolveToDataSet = {read=FResolveToDataSet, write=SetResolveToDataSet, default=0};

Properties

Type Visibility Source Unit Parent
property published
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TDataSetProvider

Description

Specifies whether updates should be applied to a dataset or directly to the database server.

Set ResolveToDataSet to specify how updates are applied. When ResolveToDataSet is true, the Resolver property is set to a TDataSetResolver component, which applies updates directly to the dataset specified by the DataSet property. This can be useful if the application uses the events on the dataset component or if the dataset does not represent the data from a database server (for example, a client dataset).

When ResolveToDataSet is false, the Resolver property is set to a TSQLResolver component, which applies updates directly to the database server associated with DataSet. This can be more efficient, because it skips the intermediate step of using the dataset. It is the only way to resolve updates if the source dataset is read-only (for example, a unidirectional dataset).

See Also