예제 #1
0
파일: Log.cs 프로젝트: fjiang2/sqlcon
        /// <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
파일: Log.cs 프로젝트: fjiang2/sqlcon
 public void BeginLog(TransactionLogeeType typeName)
 {
     this.logTransaction = LogTransaction.BeginTransaction(typeName, type);
 }
예제 #3
0
파일: Log.cs 프로젝트: fjiang2/sqlcon
 /// <summary>
 /// Begin Log Transaction, all DPOs in Form are logged as a Transaction
 /// </summary>
 public void BeginLog()
 {
     this.logTransaction = LogTransaction.BeginTransaction(type);
 }
예제 #4
0
파일: Log.cs 프로젝트: fjiang2/sqlcon
 public void BeginLog(TransactionLogeeType typeName)
 {
     this.logTransaction = LogTransaction.BeginTransaction(typeName, type);
 }
예제 #5
0
파일: Log.cs 프로젝트: fjiang2/sqlcon
 /// <summary>
 /// Begin Log Transaction, all DPOs in Form are logged as a Transaction
 /// </summary>
 public void BeginLog()
 {
     this.logTransaction = LogTransaction.BeginTransaction(type);
 }
예제 #6
0
파일: DPObject.cs 프로젝트: fjiang2/sqlcon
 /// <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
파일: DPObject.cs 프로젝트: fjiang2/sqlcon
 //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);
 }