EntityDAC

TCustomEntityDataSet.CurrentEntity Method

Returns the current entity in the dataset.

Class

TCustomEntityDataSet

Syntax

function CurrentEntity: TEntity;

Remarks

Read the property to access the current entity in the dataset as TEntity instance.

When the dataset is TEntityDataSet and its source is defined using TEntityDataSet.SourceObject or TEntityDataSet.SourceEntity then the CurrentEntity property returns the source entity.

When the dataset is TEntityDataSet and its source is defined using the TEntityDataSet.SourceCollection property then the CurrentEntity property returns the current entity in the source collection.

For TEntityTable and TEntityQuery, the CurrentEntity property returns the current entity in the dataset.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback