/// <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; }
public void BeginLog(TransactionLogeeType typeName) { this.logTransaction = LogTransaction.BeginTransaction(typeName, type); }
/// <summary> /// Begin Log Transaction, all DPOs in Form are logged as a Transaction /// </summary> public void BeginLog() { this.logTransaction = LogTransaction.BeginTransaction(type); }
/// <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); }
//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); }