예제 #1
0
파일: Logger.cs 프로젝트: fjiang2/sqlcon
        public Logger(Transaction transaction, DPObject dpo)
        {
            this.log_transaction = transaction;
            this.tableName = dpo.TableName;
            this.tableId = dpo.TableId;
            this.rowID = dpo.RowId;

            this.logee = LogManager.Instance.RowLogee(dpo);

            dpoType = dpo.GetType();
        }
예제 #2
0
        protected override void BeforeSave(DataRow dataRow)
        {
            if (!transaction)
            {
                return;
            }

            this.logger = null;
            IPersistentObject d = this.GetObject(dataRow);

            if (d is DPObject)
            {
                DPObject dpo = (DPObject)d;
                if (dpo.RowId != -1)
                {
                    this.logger = new Logger(transaction, dpo);
                }
            }
        }
예제 #3
0
 public SqlBuilder TABLE_NAME(DPObject dpo, string alias = null)
 {
     return(TABLE_NAME(dpo.TableName, alias));
 }
예제 #4
0
 public SqlBuilder JOIN(DPObject dpo, string alias = null)
 {
     return(JOIN(dpo.TableName, alias));
 }
예제 #5
0
 public SqlBuilder UPDATE(DPObject dpo, string alias = null)
 {
     return(UPDATE(dpo.TableName, alias));
 }
예제 #6
0
 public SqlBuilder FROM(DPObject dpo, string alias = null)
 {
     return(FROM(dpo.TableName, alias));
 }
예제 #7
0
파일: ClassName.cs 프로젝트: fjiang2/sqlcon
 public ClassName(DPObject dpo)
     : this(dpo.GetType())
 {
 }
예제 #8
0
 public IRowLogee RowLogee(DPObject dpo)
 {
     return RowLogee(dpo.TableName);
 }