public void OnMerge(MergeEvent @event, IDictionary copiedAlready)
        {
            if (@event.Entity == null)
                return;

            EventDispatcher.RaiseEvent(@event.Entity, typeof (UpdateEvent));

            //Validate event is raised here instead of on PreInsert/PreUpdate events to make our validation before the
            //NHibernate DefaultSaveOrUpdateEventListener is handled since it throws own exceptions if entity isn't valid
            //according to its Map.
            EventDispatcher.RaiseEvent(@event.Entity, typeof(ValidateEvent));
        }
 /// <summary>
 /// Handle the given merge event. 
 /// </summary>
 /// <param name="event">The merge event to be handled. </param><param name="copiedAlready"/>
 public void OnMerge(MergeEvent @event, IDictionary copiedAlready)
 {
     try
     {
         _defaultMergeEventListener.OnMerge(@event, copiedAlready);
     }
     catch (Exception ex)
     {
         throw new InvalidOperationException("Error trying to merge: {0}".InvariantFormat(GetUsefulEntityName(@event.Entity, @event.EntityName, null)), ex);
     }
 }
 /// <summary>
 /// Handle the given merge event. 
 /// </summary>
 /// <param name="event">The merge event to be handled. </param><param name="copiedAlready"/>
 public void OnMerge(MergeEvent @event, IDictionary copiedAlready)
 {
     ExplicitUpdateCall(@event.Entity as Entity);
 }
 /// <summary>
 /// Handle the given merge event. 
 /// </summary>
 /// <param name="event">The merge event to be handled. </param>
 public void OnMerge(MergeEvent @event)
 {
     ExplicitUpdateCall(@event.Entity as Entity);
 }
 public void OnMerge(MergeEvent @event, IDictionary copiedAlready)
 {
     ExplicitUpdateCall(@event.Entity as ITrackModificationDate);
 }
 public void OnMerge(MergeEvent @event)
 {
     ExplicitUpdateCall(@event.Entity as ITrackModificationDate);
 }
Beispiel #7
0
 public void OnMerge(MergeEvent @event)
 {
     @event.EntityName = GetEntityName(@event.Original, @event.EntityName);
 }
Beispiel #8
0
 public void OnMerge(MergeEvent @event, IDictionary copiedAlready)
 {
     @event.EntityName = GetEntityName(@event.Original, @event.EntityName);
 }
		public void OnMerge(MergeEvent @event, IDictionary copiedAlready)
		{
			ResetReadOnlyEntity(@event.Session, @event.Original);
		}
		public void OnMerge(MergeEvent @event)
		{
			OnMerge(@event, null);
		}
 public void OnMerge(MergeEvent @event)
 {
     log.Debug("OnMerge :" + @event);
 }
 public void OnMerge(MergeEvent @event, System.Collections.IDictionary copiedAlready)
 {
     log.Debug("OnMerge :" + @event);
 }