title: NHibernate query to get objects with properties that match string parts
body: <p>I have a <code>Person</code> class with the following properties:</p>
  
  <pre><code>public class Person
  {
    public string LastName { get; set; }
    public string FirstName{ get; set; }
    public string SecondName { get; set; }
    public string Position { get; set; }
  }
  </code></pre>
  
  <p>The user is presented with a search box where they can enter a string separated with spaces. The task is to query from the DB all the Persons that have any property equal to any part of the entered string (the parts are substrings split by spaces). The simplest solution is to OR all possible combinations. But, in my sense, it doesn't seem right. Are there more elegant solutions?<br>
  Thanks in advance.</p>