コード例 #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;
 }