title: In NHibernate how do I add a Replace to an Restrictions.Eq?
body: <p>I want to add a Restrictions.Eq with a TSQL replace surrounding the column name.  How would I do that?</p>
  
  <pre><code>string location = "Columbus OH";
  
  var requestQuery = Session.CreateCriteria&lt;Request&gt;();
  requestQuery.Add(Restrictions.Eq("Replace(LocationName,',','')", location);
  </code></pre>