NHibernate - auto generate timestamp on create and update ?
Posted
by driis
on Stack Overflow
See other posts from Stack Overflow
or by driis
Published on 2010-04-21T08:30:01Z
Indexed on
2010/04/21
8:33 UTC
Read the original article
Hit count: 305
nhibernate
|nhibernate-mapping
I am trying to map an entity in NHibernate, that should have an Updated column. This should be the DateTime when the entity was last written to the database (either created or updated). I'd like NHibernate to control the update of the column, so I don't need to remember to set a property to the current time before updating.
Is there a built-in feature in NHibernate, that can handle this for me ?
© Stack Overflow or respective owner