title: NHibernate QueryOver with Restrictions
body: <p>I am new to NHibernate and trying to use the <code>QueryOver</code>. I have the following NHibernate query</p>
  
  <pre><code>var departments = session
     .QueryOver&lt;Department&gt;()
     .Where(Restrictions.On&lt;Department&gt;x=&gt; x.Parent.Id).IsIn(new List&lt;int&gt; {100}))
     .List().ToList();
  </code></pre>
  
  <p>I have a single value to pass into IsIn and for that I have to new up a list (<code>new List&lt;int&gt; {100}</code>)). Is there a more cleaner way of doing this?</p>