예제 #1
0
        private void OnTranscationCommit(object sender, EventArgs e)
        {
            DbObjectOperator @operator = sender as DbObjectOperator;

            @operator.TranscationCommit -= new EventHandler(this.OnTranscationCommit);
            this.previousState           = null;
        }
예제 #2
0
        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]);
            }
        }
예제 #3
0
 public DbEventArgs(DbObjectOperator op, DbOperationAction action)
 {
     this._operator = op;
     this._action   = action;
 }