Пример #1
0
        /// <summary>
        /// Close log transaction, it can be closed many times
        /// </summary>
        public void EndLog()
        {
            if (this.logTransaction == null)
                return;

            this.logTransaction.EndTransaction();
            this.logTransaction = null;
        }
Пример #2
0
 public void BeginLog(TransactionLogeeType typeName)
 {
     this.logTransaction = LogTransaction.BeginTransaction(typeName, type);
 }
Пример #3
0
 /// <summary>
 /// Begin Log Transaction, all DPOs in Form are logged as a Transaction
 /// </summary>
 public void BeginLog()
 {
     this.logTransaction = LogTransaction.BeginTransaction(type);
 }
Пример #4
0
 public void BeginLog(TransactionLogeeType typeName)
 {
     this.logTransaction = LogTransaction.BeginTransaction(typeName, type);
 }
Пример #5
0
 /// <summary>
 /// Begin Log Transaction, all DPOs in Form are logged as a Transaction
 /// </summary>
 public void BeginLog()
 {
     this.logTransaction = LogTransaction.BeginTransaction(type);
 }
Пример #6
0
 /// <summary>
 /// save current record and log
 /// </summary>
 /// <param name="logTransaction"></param>
 public virtual void SaveAndLog(LogTransaction logTransaction)
 {
     logTransaction.Add(this);
     this.Save();
     //logTransaction.Remove(this);
 }
Пример #7
0
 //public abstract int TableId { get; }
 //public abstract string CreateTableString { get; }
 /// <summary>
 /// make this dpo record loggable
 /// </summary>
 /// <param name="transaction"></param>
 public void AddLog(LogTransaction transaction)
 {
     AddLog(transaction.transaction);
 }