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(); }
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); } } }
public SqlBuilder TABLE_NAME(DPObject dpo, string alias = null) { return(TABLE_NAME(dpo.TableName, alias)); }
public SqlBuilder JOIN(DPObject dpo, string alias = null) { return(JOIN(dpo.TableName, alias)); }
public SqlBuilder UPDATE(DPObject dpo, string alias = null) { return(UPDATE(dpo.TableName, alias)); }
public SqlBuilder FROM(DPObject dpo, string alias = null) { return(FROM(dpo.TableName, alias)); }
public ClassName(DPObject dpo) : this(dpo.GetType()) { }
public IRowLogee RowLogee(DPObject dpo) { return RowLogee(dpo.TableName); }