I am applying NHibernate to an existing project, where tables and columns are already defined and fixed.
The database is MS-SQL-2008. NHibernate 2.1.2
Many tables have a column of type timestamp named "ReplicationID", and also a column of type datetime named "UpdatedDT".
I understand I might be able to use the <timestamp>
element of the mapping file to describe the "ReplicationID" column which will allow NHibernate to manage that column.
Is it possible to make NHibernate automatically update the UpdatedDT column when the row is updated? I suppose I could try mapping the UpdatedDT property to be of type timestamp, but that have other side effects.