コード例 #1
0
ファイル: AuditEventListener.cs プロジェクト: umittal/MunimJi
 public virtual void OnPreRemoveCollection(PreCollectionRemoveEvent evt)
 {
     var collectionEntry = GetCollectionEntry(evt);
     if (collectionEntry != null && !collectionEntry.LoadedPersister.IsInverse)
     {
         OnCollectionAction(evt, null, collectionEntry.Snapshot, collectionEntry);
     }
 }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="evt"></param>
 public override void OnPreRemoveCollection(PreCollectionRemoveEvent evt)
 {
 }
コード例 #3
0
ファイル: EventListener.cs プロジェクト: stanb/NHExperiments
 public void OnPreRemoveCollection(PreCollectionRemoveEvent @event)
 {
     Debug.WriteLine("EventListener.OnPreRemoveCollection: {0} {1}", @event.AffectedOwnerIdOrNull, @event.Collection.Role);
 }
コード例 #4
0
			public void OnPreRemoveCollection(PreCollectionRemoveEvent @event)
			{
				AddEvent(@event, this);
			}
コード例 #5
0
		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);
				}
			}
		}
コード例 #6
0
 public void OnPreRemoveCollection(PreCollectionRemoveEvent @event)
 {
     log.Debug("OnPreRemoveCollection :" + @event);
 }