title: NHibernate Linq Like Query Question
body: <p>Is there any way to make NHibernate.Linq generate a like query on an integer field?  The SQL that I want it to generate is: </p>
  
  <pre><code>select IntegerColumn 
  from Table 
  where IntegerColumn like '%StringValue%'
  </code></pre>
  
  <p>I've tried something like:</p>
  
  <pre><code>from entity in _session.Linq&lt;Entity&gt;
  where entity.IntegerColumn.ToString().Contains(StringValue)
  select entiry.IntegerColumn
  </code></pre>
  
  <p>This produces an ArgumentOutOfRange exception when it evaluates the query.</p>
  
  <p>Does anyone have an idea how I can accomplish this?</p>
  
  <p>Thanks,
  Nathan</p>