title: NHibernate / MySQL string concatenation
body: <p>I have a nhibernate linq query that looks like this:</p>
  
  <pre><code> from b in session.Query&lt;Bookmark&gt;()
  where b.Uri.Equals(uri) ||
        b.Uri.Equals("www." + uri) ||
  string.Concat("www.", b.Uri).Equals(uri)
  select b
  </code></pre>
  
  <p>This blows up, saying Concat isn't support, but when I change it to</p>
  
  <pre><code> from b in session.Query&lt;Bookmark&gt;()
  where b.Uri.Equals(uri) ||
        b.Uri.Equals("www." + uri) ||
        ("www." + b.Uri).Equals(uri)
  select b
  </code></pre>
  
  <p>It runs fine, but the query looks like this:</p>
  
  <pre><code>select cast(count(*) as SIGNED) as col_0_0_ 
   from bookmarks bookmark0_ 
   where bookmark0_.Uri = 'www.google.com' 
      or bookmark0_.Uri = 'www.www.google.com'
      or 'www.'+bookmark0_.Uri = 'www.google.com';
  </code></pre>
  
  <p>Where the 'www.'+bookmark0_.Uri is "added" instead of concat('www.',bookmark0_.Uri).  Is there a way to concatenate strings in Linq for NHibernate for MySQL?</p>