private void OnTranscationCommit(object sender, EventArgs e) { DbObjectOperator @operator = sender as DbObjectOperator; @operator.TranscationCommit -= new EventHandler(this.OnTranscationCommit); this.previousState = null; }
private void OnTranscationRollback(object sender, EventArgs e) { DbObjectOperator @operator = sender as DbObjectOperator; @operator.TranscationRollback -= new EventHandler(this.OnTranscationRollback); if (this.previousState != null) { CloneUtils.CloneObject <DbObjectState>(this.previousState, this.State, new Expression <Func <DbObjectState, object> > [0]); } }
public DbEventArgs(DbObjectOperator op, DbOperationAction action) { this._operator = op; this._action = action; }