The method is designed for filling the specified key with the entity key value.
The method fills the specified key with the entity key value. The specified key has to be of the same meta-type as the entity. Otherwise, the exception will be raised. To set the entity key with a key value, the FromKey method is used.