#
geckex
Hi - new to all things Cuyahoga but very impressed with what I have seen of the architecture so far (manically reading through The Castle to try and understand what's going on).
Anyways - quick question on the NHibernation implementation - the SaveObject methods is not setting the timestamp for opitmistic concurrency - what's the reason for this?
Anyways - quick question on the NHibernation implementation - the SaveObject methods is not setting the timestamp for opitmistic concurrency - what's the reason for this?
public virtual void SaveObject(object obj)
{
ITransaction trn = this._activeSession.BeginTransaction();
try
{
// // Try to find a UpdateTimestamp property and when found, set it to the current date/time.
// PropertyInfo pi = obj.GetType().GetProperty("UpdateTimestamp");
// if (pi != null)
// {
// pi.SetValue(obj, DateTime.Now, null);
// }
this._activeSession.Save(obj);
trn.Commit();
}
catch (Exception ex)
{
trn.Rollback();
throw ex;
}
}