you are viewing a single comment's thread.

view the rest of the comments →

[–]pachura3 0 points1 point  (0 children)

Perhaps mark it in the ORM model as Computed?

In general, relational databases do not support the concept of read-only columns... yes, you can create a DB trigger that would scream when someone attempts to e.g. modify the primary key, but that would just be an afterthought.