EntityDAC

TCustomEntityDataSet.Current<T> Method

Returns the current entity in the dataset.

Class

TCustomEntityDataSet

Syntax

function Current<T: class>: T;

Type parameters
T
Specifies the class type of the entity to be returned.

Remarks

Read the property to access the current entity in the dataset as a specified class instance.

When the dataset is TEntityDataSet and its source is defined using TEntityDataSet.SourceObject or TEntityDataSet.SourceEntity then the Current<T> property returns the source entity.

When the dataset is TEntityDataSet and its source is defined using the TEntityDataSet.SourceCollection property then the Current<T> property returns the current entity in the source collection.

For TEntityTable and TEntityQuery, the Current<T> property returns the current entity in the dataset.

See Also

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