public virtual void OnRollback(object sender, RepositoryRollbackEventArgs e) { if (this.Rollback != null) { this.Rollback(sender, e); } }
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); }
public void Add(RepositoryRollbackEventArgs e) { _items.Add(e); }