예제 #1
0
 public virtual void OnPreRemoveCollection(PreCollectionRemoveEvent evt)
 {
     var collectionEntry = GetCollectionEntry(evt);
     if (collectionEntry != null && !collectionEntry.LoadedPersister.IsInverse)
     {
         OnCollectionAction(evt, null, collectionEntry.Snapshot, collectionEntry);
     }
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="evt"></param>
 public override void OnPreRemoveCollection(PreCollectionRemoveEvent evt)
 {
 }
예제 #3
0
 public void OnPreRemoveCollection(PreCollectionRemoveEvent @event)
 {
     Debug.WriteLine("EventListener.OnPreRemoveCollection: {0} {1}", @event.AffectedOwnerIdOrNull, @event.Collection.Role);
 }
			public void OnPreRemoveCollection(PreCollectionRemoveEvent @event)
			{
				AddEvent(@event, this);
			}
		private void PreRemove()
		{
			IPreCollectionRemoveEventListener[] preListeners = Session.Listeners.PreCollectionRemoveEventListeners;
			if (preListeners.Length > 0)
			{
				PreCollectionRemoveEvent preEvent = new PreCollectionRemoveEvent(Persister, Collection, (IEventSource) Session,
				                                                                 affectedOwner);
				for (int i = 0; i < preListeners.Length; i++)
				{
					preListeners[i].OnPreRemoveCollection(preEvent);
				}
			}
		}
 public void OnPreRemoveCollection(PreCollectionRemoveEvent @event)
 {
     log.Debug("OnPreRemoveCollection :" + @event);
 }