Example #1
0
 protected void CommitAttributeUpdate(DatastoreObject obj, string attributeName, IsamTransaction transaction, bool hasChanged, bool skipMetaUpdate)
 {
     if (hasChanged)
     {
         if (!skipMetaUpdate)
         {
             // Increment the current USN
             long currentUsn = ++this.context.DomainController.HighestCommittedUsn;
             DateTime now = DateTime.Now;
             obj.UpdateAttributeMeta(attributeName, currentUsn, now);
         }
         this.dataTableCursor.AcceptChanges();
         transaction.Commit();
     }
     else
     {
         // No changes have been made to the object
         this.dataTableCursor.RejectChanges();
         transaction.Abort();
     }
 }