title: How delete object by sending query to Session.Delete(...) in Nhibernate 3.3.3.4001
body: <p>I have the following block of code which should ultimately delete a record.</p>
  
  <pre><code>long id = 81;
  SessionInstance.Delete("from Core.Domain.Model.Person as obj where obj.Id =:id", id, NHibernateUtil.Int64);
  </code></pre>
  
  <p>But after upgrade Nhibernate version to 3.3.3.4001, this code has a exception by this message : </p>
  
  <blockquote>
    <p>The given key was not present in the dictionary.</p>
  </blockquote>
  
  <p>Why?</p>