Provider.TDataSetProvider.ResolveToDataSet

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Provider.pas

	property ResolveToDataSet: Boolean read FResolveToDataSet write SetResolveToDataSet;


Unit: Provider

Type: property

Visibility: published

Member Of: TDataSetProvider

C++ Information

From Provider.hpp

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


Unit: Provider

Type: property

Visibility: public

Member Of: 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

Personal tools
Translations
Newest Version