FireDAC.Comp.DataSet.TFDDataSet.IndexDefs

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property IndexDefs: TIndexDefs read FIndexDefs write SetIndexDefs stored IsIDS;

C++

__property Data::Db::TIndexDefs* IndexDefs = {read=FIndexDefs, write=SetIndexDefs, stored=IsIDS};

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

Description

Returns the index definitions for the dataset.

Use the IndexDefs property to read or maintain index definitions. 

The dataset also has an Indexes collection. The application should use either IndexDefs or Indexes, but not both at the same time. We suggest to use Indexes, as it is more flexible. The IndexDefs property is needed for compatibility with other software using TDataSet, where IndexDefs is really defined. 

The TFDTable automatically fills IndexDefs by database indexes, if fiMeta is included in FetchOptions.Items.

See Also