StoreGeneratedPattern="Computed"
works flawlessly on columns of type timestamp
. But you can't display a TimeStamp as a human-readable form.
So you can't show the user "This row was modified on {TimeStamp}
" because you simply can't parse a SQL Timestamp to DateTime.
Now can I also create computed columns for DateTime
columns so I don't need to set it manually?
myEntity.LastModification = DateTime.Now
Not to mention it would be quite error-prone, if some user really wanted to do something bad, by simply changing his computers time.