title: NHibernate - "No row with the given identifier exists" but it is there
body: <p>I am using NHibernate and this error appears when I use Get method of Session.</p>
  
  <p>This is my code:</p>
  
  <pre><code>public T GetById(object id)
      {
          T entity;
          entity = (T)ReportHttpModule.CurrentSession.Get(typeof(T), id);
          return entity;
      }
  </code></pre>
  
  <p>note that I don't get this error when use <code>CreateCriteria(T)</code> before calling that method!</p>