示例#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
 public ClassName(DPObject dpo)
     : this(dpo.GetType())
 {
 }
示例#8
0
 public IRowLogee RowLogee(DPObject dpo)
 {
     return RowLogee(dpo.TableName);
 }