public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
     var session = @event.Session;
     EntityEntry entry = session.PersistenceContext.GetEntry(@event.Entity);
     if (entry != null && entry.Persister.IsMutable && entry.Status == Status.ReadOnly)
     {
         entry.BackSetStatus(Status.Loaded);
     }
 }
 public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
 }
 public void OnDelete(DeleteEvent @event)
 {
 }
Пример #4
0
 public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
     EventDispatcher.RaiseEvent(@event.Entity, typeof(Common.Events.DeleteEvent));
 }
Пример #5
0
 public void OnDelete(DeleteEvent @event)
 {
     EventDispatcher.RaiseEvent(@event.Entity, typeof(Common.Events.DeleteEvent));
 }
Пример #6
0
 public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
     try
     {
         _defaultDeleteListener.OnDelete(@event, transientEntities);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(string.Format("Error while trying to delete a {0} with id {1}", @event.EntityName, @event.Session.GetIdentifier(@event.Entity)), ex);
     }
 }
Пример #7
0
 public void OnDelete(DeleteEvent @event)
 {
     Debug.WriteLine("EventListener.OnDelete: {0}", @event.Entity);
 }
 public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
     EventDispatcher.RaiseEvent(@event.Entity, typeof (Common.Events.DeleteEvent));
 }
		public void OnDelete(DeleteEvent @event, ISet<object> transientEntities)
#endif
		{
		}
 public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
     Console.WriteLine("Deleting multiple");
 }
 public void OnDelete(DeleteEvent @event)
 {
     Console.WriteLine("Deleting");
 }
Пример #12
0
 public void OnDelete(DeleteEvent @event)
 {
     log.Debug("OnDelete :" + @event);
 }
Пример #13
0
 public void OnDelete(DeleteEvent @event, Iesi.Collections.ISet transientEntities)
 {
     log.Debug("OnDelete :" + @event);
 }
Пример #14
0
 /// <summary>
 /// Handle the given delete event. 
 /// </summary>
 /// <param name="event">The delete event to be handled. </param>
 public void OnDelete(DeleteEvent @event)
 {
     try
     {
         try
         {
             AggregateDataInterceptor.OnDeleteCheckAggregate(@event.Entity, @event.Session);
         }
         finally
         {
             _defaultDeleteListener.OnDelete(@event);
         }
     }
     catch (Exception ex)
     {
         throw new ApplicationException(string.Format("Error while trying to delete a {0} with id {1}", @event.EntityName, @event.Session.GetIdentifier(@event.Entity)), ex);
     }
 }
 public void OnDelete(DeleteEvent @event)
 {
     OnDelete(@event, new IdentitySet());
 }
Пример #16
0
 public void OnDelete(DeleteEvent @event, ISet transientEntities)
 {
     Debug.WriteLine("EventListener.OnDelete: {0}", @event.Entity);
 }
 public void OnDelete(DeleteEvent @event)
 {
     EventDispatcher.RaiseEvent(@event.Entity, typeof (Common.Events.DeleteEvent));
 }