title: Nhibernate Inserting when should be update after adding Event Listener
body: <p>I have a Custom EventListener hooked into listen for SaveOrUpdates and now whenever I call Session.SaveOrUpdate on my object it inserts when it should update.</p>
  
  <p>Here is my Event Listener:</p>
  
  <pre><code>public class CustomSaveEventListener : DefaultSaveEventListener
  {
  
      protected override object PerformSaveOrUpdate(SaveOrUpdateEvent @event)
      {
          return base.PerformSaveOrUpdate(@event);
      }
  
  }
  </code></pre>
  
  <p>Here is how it is configured (fluently):</p>
  
  <pre><code> SessionFactory = Fluently.Configure()
                .Database(MsSqlConfiguration.MsSql2005.ConnectionString(c =&gt; c.Is(connString)).ShowSql().DoNot.UseReflectionOptimizer)
                .Mappings(m =&gt; m.FluentMappings.AddFromAssemblyOf&lt;INC_IncidentMap&gt;())
                .ExposeConfiguration(c =&gt; c.EventListeners.SaveOrUpdateEventListeners = new ISaveOrUpdateEventListener[] { new CustomSaveEventListener() })
                .BuildConfiguration().BuildSessionFactory();
  </code></pre>
  
  <p>The reason I need the event listener is because I need to perform audit tracking on any/every entity persisted.</p>
  
  <p>Has anyone ran into this issue? Any insight would be greatly appreciated.</p>