Data.DB.TDataSet.PSGetKeyFields
Delphi
function PSGetKeyFields: string; virtual;
C++
virtual System::UnicodeString __fastcall PSGetKeyFields(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.DB.pas Data.DB.hpp |
Data.DB | TDataSet |
Description
Returns the names of all fields required to uniquely identify records in the data packet.
The provider component calls PSGetKeyFields to determine what information is required to uniquely identify records in the data packet. This information allows it to locate the records that need to change when it applies updates.
PSGetKeyFields returns a semicolon-delimited string that lists the names of the key fields of the dataset. By default (as implemented by TDataSet), these are the fields with pfInKey included in their ProviderFlags property.
This method is an implementation of IProviderSupport.PSGetKeyFields.