The method is designed for setting the entity key value.
procedure FromKey(Key: TCustomKey);
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.