EntityDAC

TEntity.FromKey Method

The method is designed for setting the entity key value.

Class

TEntity

Syntax

procedure FromKey(Key: TCustomKey);

Parameters
Key
The key instance containing entity key value.

Remarks

The method sets the entity key from the specified key value. The specified key has to be of the same meta-type as the entity. Otherwise, the exception will be raised. To fill a key with the entity key value, the ToKey method is used.

See Also

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