Returns the current entity in the dataset.
function CurrentEntity: TEntity;
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.