StoreGeneratedPattern="Computed" works flawlessly on timestamp columns. But you cannot display TimeStamp as a human readable form.
Therefore, you cannot show the user "This string has been changed to {TimeStamp} " because you simply cannot parse the SQL Timestamp in a DateTime.
Now I can create calculated columns for DateTime columns, so I don’t need to set it manually? myEntity.LastModification = DateTime.Now
Not to mention that it would be quite error prone if some user really wanted to do something bad by simply changing the time of their computer.
SeToY
source share