c# - NHibernate Expression.Like Criteria on Two Fields -


I have a Nhibernate object in which the property has first name and last name, and I want to be able to query both areas (First name + "+ + + nickname"); if the search term is "John Doe", then it will be matched when John and Dow are in different areas.

How can I get it? Thanks

So I'm finished:

  add (restrictions) J. Projection ("surname"), searchstring, matchmodel ("projection", "concat", NHBirt utility string, projection.property ("firstname"), presentation, constant (""), projects.  

That makes me work as important.

Comments