Beispiel #1
0
 public virtual void OnRollback(object sender, RepositoryRollbackEventArgs e)
 {
     if (this.Rollback != null)
     {
         this.Rollback(sender, e);
     }
 }
Beispiel #2
0
        protected void RegisterRollbackUpdate(IAggregateRoot obj)
        {
            var args = new RepositoryRollbackEventArgs(obj, this, RepositoryAction.Update);

            DataContext.Current.RegisterRollback(args);
        }
 public void RegisterRollback(RepositoryRollbackEventArgs e)
 {
     _rollbacks.Add(e);
 }
Beispiel #4
0
 public void Add(RepositoryRollbackEventArgs e)
 {
     _items.Add(e);
 }